RE: Formatting output
Tatu Saloranta <[email protected]>
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
--- Michael Kay <[email protected]> wrote: ... > Incidentally, I'm not sure where you found the > statement that SAX parsers > won't report whitespace outside the document > element. The ContentHandler I think meant this in context of parsing a regular well-formed document. In this case, white space outside of root element is not character content, and as such should not be reported via characters() method, or (if my understanding is correct) via ignorableCharacters() (or whatever it was called) method. This based on some discussion on stax list, where this was based, wrt. xml specification. But you are right, this behavior may be different from how content from xml fragment would be dealt with. -+ Tatu +- ____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]