Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

RE: [jdom-interest] Formatting output

Michael Kay

2007-04-07

Replies:

> Empirical evidence demonstrates SAX parsers do not return
> whitespace outside the root element. JDOM would error out if
> any did. Do you think any might start to report such
> whitespace? I'd prefer if a JDOM document built via SAX
> could capture that whitespace to be able to round trip more reliably.

It's very unlikely that a SAX parser would generate such events, but other
sources of SAX events - for example an XSLT transformation run using JAXP
interfaces - might well do so.

Michael Kay
http://www.saxonica.com/

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.