|Format of serialized XML [message #603229]
||Mon, 18 August 2008 13:26
| Moritz Eysholdt
Registered: July 2009
Location: Kiel, Germany
I'm looking for ways to control the XMLResource's output format, my aim
is to improve readability. I've found XMLResource.OPTION_FORMATTED and
XMLResource.OPTION_LINE_WIDTH which claim do exactly what I'm looking for...
Formating, especially indentation, seems not to be enabled for mixed
elements, though. I agree that this is a useful default behavior since
the text, which would be changed for formating, is actually part of the
model and not just something what gets thrown away while parsing.
But is there a way to enable formating for mixed elements, too?
Some of the files I want to format don't have an XML Schema and are
therefore loaded using AnyTypeImpl, which considers all it's children as
Powered by FUDForum
. Page generated in 0.02109 seconds