[xsd-users] Serialization with no line breaks

Boris Kolpackov boris at codesynthesis.com
Tue Jun 10 03:26:23 EDT 2008


Hi Bruno,

bruno.marotta at fortis.com <bruno.marotta at fortis.com> writes:

> how do I serialize to an XML in one straight line (no line breaks)

You can turn of XML pretty printing as explained in this reply:

http://www.codesynthesis.com/pipermail/xsd-users/2007-September/001221.html

Seeing that this feature has been requested by a few people already
we will add a serialization flag in the next release of XSD to turn
pretty-printing off. Gordon Kramer suggest a patch that implements
this so instead of performing your own DOM serialization as explained
above you may want to simply apply this patch (it doesn't require a
compiler rebuild so you can apply it to a pre-compiled binary 
distribution):

http://www.codesynthesis.com/pipermail/xsd-users/2008-March/001555.html

Boris




More information about the xsd-users mailing list