[jdom-interest] SAXOutputter
Bradley S. Huffman
hip at cs.okstate.edu
Thu Apr 15 15:08:51 PDT 2004
Elliotte Rusty Harold writes:
> At 12:18 PM -0500 4/15/04, Bradley S. Huffman wrote:
>
>
> >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?
>
> This most frequently comes up in TrAX. Some processors call
> startDocument and endDocument for a fragment. Some don't. I don't
> think the spec properly addresses this point. :-(
Yep, IIRC this came up last time Laurent was working on JDOMResult. So any
opinion on what JDOM should do? From your first post, I assume your paper
advocates only calling startDocument on the start of a actual well-formed
document, but not when used to process a fragment.
Brad
More information about the jdom-interest
mailing list