Peter Taylor
2011-09-15 16:25:16 UTC
Certiainly there never use to be. I ended up transforming the XOM to
DOM.
Then it's easy to indent and you'd expect:
http://www.chipkillmar.net/2009/03/25/pretty-print-xml-from-a-dom/
-----Original Message-----
From: xom-interest-bounces at lists.ibiblio.org
[mailto:xom-interest-bounces at lists.ibiblio.org] On Behalf Of Jens Kripl
Sent: 15 August 2011 20:57
To: xom-interest at lists.ibiblio.org
Subject: [SPAM(hdr)] - [XOM-interest] Using Serializer with Indenting
(without alteringAttribute values)
Hi,
I'm using the Serializer to pretty print my XOM constructed XML.
I've read the javadoc and some comments on the list that it may change
whitespace, but this is really a problem for me:
Before : <foo name="Abc CdeF" />
After : <foo name="Abc CdeF" />
Expected: <foo name="Abc CdeF" />
Is there any way to change this behaviour? The value of the attribute
should not be changed, but elements should be indented.
Regards,
Jens
DOM.
Then it's easy to indent and you'd expect:
http://www.chipkillmar.net/2009/03/25/pretty-print-xml-from-a-dom/
-----Original Message-----
From: xom-interest-bounces at lists.ibiblio.org
[mailto:xom-interest-bounces at lists.ibiblio.org] On Behalf Of Jens Kripl
Sent: 15 August 2011 20:57
To: xom-interest at lists.ibiblio.org
Subject: [SPAM(hdr)] - [XOM-interest] Using Serializer with Indenting
(without alteringAttribute values)
Hi,
I'm using the Serializer to pretty print my XOM constructed XML.
I've read the javadoc and some comments on the list that it may change
whitespace, but this is really a problem for me:
Before : <foo name="Abc CdeF" />
After : <foo name="Abc CdeF" />
Expected: <foo name="Abc CdeF" />
Is there any way to change this behaviour? The value of the attribute
should not be changed, but elements should be indented.
Regards,
Jens