[jdom-interest] SAXOutputter

Bradley S. Huffman hip at cs.okstate.edu
Thu Apr 22 08:26:10 PDT 2004

Laurent Bihanic writes:

> No, output(List) *may* lead it ill-formed documents if the top-level list 
> objects are not legal at the document level (e.g. Text or CDATA nodes, 
> multiple Element nodes, etc.). If the list is made of a single Element plus 
> PIs and Comments, the outputted XML is well-formed.
> output(Content) would output well-formed XML only if the node is an Element. 
> In any other case, the output is ill-formed. Thus, while 
> outputFragment(Content) is OK, output(Content) is not and should be changed 
> into output(Element) (if we decide to add such a method).

Well if output is for well-formed only, then do you suggest deprecating
output(List)? Leaving the 3 core methods



More information about the jdom-interest mailing list