[jdom-interest] Default XMLOutputter behavior

Clark, Stacie sclark at e-numerate.com
Mon Sep 11 12:49:38 PDT 2000


If I parse some xml that does not have a header, it's just a fragment of a
document, I see the following behavior:

SAXBuilder using XMLOutputer adds:
<?xml version="1.0" encoding="UTF-8"?>

DOMBuilder using XMLOutputter adds:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE SECTION> 

I would have expected the default output to look the same, since the
orignal text had no heading at all. (I know that the heading and doc
declaration can be explicitly turned on and off). 

Stacie



More information about the jdom-interest mailing list