Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] XML whitespace in text

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Dick H <dick AT wt.net>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] XML whitespace in text
  • Date: Mon, 28 Apr 2003 14:32:03 -0500

I was surprised to see XOM remove newlines in my text:

<element>There was a new line here:
2nd line.
</element>

After using Builder and Xerces 2.4 Builder, I get

<element>There was a new line here: 2nd line.
</element>

My reading of XML spec says that any text within an element (but outside tags) is significant, including new lines.

Whats up?




Archive powered by MHonArc 2.6.24.

Top of Page