[jdom-interest] HTML tags appearing in JDOM tree

kjc ksitron at elp.rr.com
Thu Jan 20 13:08:23 PST 2005


I have an XML document that i'm using JDOM to manipulate.

here is the code

SAXBuilder jdomBuilder = new SAXBuilder();
       
        try {
           
           
            jdomBuilder.setExpandEntities(true);
           
            URL siteConfigURL = new URL("file:///home/siteConfig.xml");
           
            InputStream in = siteConfigURL.openStream();
            logger.error(siteConfigURL.getFile());
            Document configDoc = jdomBuilder.build(in);
           
            logger.error("document parsed"    );
             XMLOutputter outputter = new XMLOutputter();
               
             
             outputter.output(configDoc, System.out);
}


other code omitted....

The output from outputter.output displays
<HTML><BODY>
tags before the actual XML document content,
and
</BODY></HTML>

tags after.
What is up with that.




More information about the jdom-interest mailing list