Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Format of serialized XML
Format of serialized XML [message #603229] Mon, 18 August 2008 09:26
Moritz Eysholdt is currently offline Moritz Eysholdt
Messages: 142
Registered: July 2009
Location: Kiel, Germany
Senior Member
Hi,

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
mixed.

thanks,
Moritz
Previous Topic:XML and XSD models from string
Next Topic:Format of serialized XML
Goto Forum:
  


Current Time: Fri Jul 25 03:07:07 EDT 2014

Powered by FUDForum. Page generated in 0.02547 seconds