Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] pretty printing

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Jacky Lu <Jacky.Lu AT Sun.COM>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] pretty printing
  • Date: Thu, 08 Jan 2004 12:22:00 -0500

Hello,

I'm creating XML document using Serializer class. When the indent is set
to a positive integer, the input whitespaces(including the spaces
contained in a string value) will not be respected. E.g.
<name>bill gates</name>
will be serialized to
<name>
bill gates
</name>

The spaces between "bill" and "gates" are condensed to a single one.
How can I keep those spaces? (of course I still need pretty printing)

Thanks,
Jacky






Archive powered by MHonArc 2.6.24.

Top of Page