[jdom-interest] SAXOutputter

Bradley S. Huffman hip at cs.okstate.edu
Thu Apr 15 10:18:20 PDT 2004

Elliotte Rusty Harold writes:

> At 10:49 AM -0500 4/15/04, Bradley S. Huffman wrote:
> >SAX requires startDocument be called once before any other events.
> Are you sure? Can you point to the language in the spec that says 
> that?(I really want to know, by the way, because otherwise I'm less 
> than 24 hours away from getting on a plane to deliver a paper that 
> claims otherwise)
> Certainly this is true if the parser is reading a well-formed XML 
> document, but that's not really the case here. Something else is 
> going on, and how ContentHandler should behave in these circumstances 
> is much less well-defined.

Okay, what is the "right" thing to do?  Yes, the javadoc for startDocument
says a "SAX parser will" which really doesn't specify what to do about
fragments, so should output(List) call it or not?


More information about the jdom-interest mailing list