[jdom-interest] Formatting output

Michael Kay mike at saxonica.com
Sat Apr 7 17:13:57 PDT 2007


> 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/



More information about the jdom-interest mailing list