[jdom-interest] Formatting output

Tatu Saloranta cowtowncoder at yahoo.com
Sat Apr 7 16:11:48 PDT 2007

--- Michael Kay <mike at saxonica.com> 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.

More information about the jdom-interest mailing list