xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] [SPAM(hdr)] - Using Serializer with Indenting (without alteringAttribute values)
- From: "Peter Taylor" <peter.taylor AT greenhat.com>
- To: "XOM API for Processing XML with Java" <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] [SPAM(hdr)] - Using Serializer with Indenting (without alteringAttribute values)
- Date: Thu, 15 Sep 2011 17:25:16 +0100
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
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
Re: [XOM-interest] [SPAM(hdr)] - Using Serializer with Indenting (without alteringAttribute values),
Peter Taylor, 09/15/2011
-
Re: [XOM-interest] [SPAM(hdr)] - Using Serializer with Indenting (without alteringAttribute values),
Elliotte Rusty Harold, 09/15/2011
-
Re: [XOM-interest] [SPAM(hdr)] - Using Serializer with Indenting (without alteringAttribute values),
Leif Stainsby, 09/15/2011
- Re: [XOM-interest] [SPAM(hdr)] - Using Serializer with Indenting (without alteringAttribute values), Elliotte Rusty Harold, 09/15/2011
-
Re: [XOM-interest] [SPAM(hdr)] - Using Serializer with Indenting (without alteringAttribute values),
Leif Stainsby, 09/15/2011
-
Re: [XOM-interest] [SPAM(hdr)] - Using Serializer with Indenting (without alteringAttribute values),
Elliotte Rusty Harold, 09/15/2011
Archive powered by MHonArc 2.6.24.