[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 {
            URL siteConfigURL = new URL("file:///home/siteConfig.xml");
            InputStream in = siteConfigURL.openStream();
            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
tags before the actual XML document content,

tags after.
What is up with that.

More information about the jdom-interest mailing list