Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Format of serialized XML
Format of serialized XML [message #603229] Mon, 18 August 2008 13:26
Moritz Eysholdt is currently offline Moritz EysholdtFriend
Messages: 161
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: Thu Apr 25 00:20:24 GMT 2024

Powered by FUDForum. Page generated in 0.02540 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top