By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,529 Members | 923 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,529 IT Pros & Developers. It's quick & easy.

Missing attribute standalone=no in JDOM API

P: n/a
Currently I use jdom-b9 version to parase xml with the following xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

with the code like this
SAXBuilder builder = new SAXBuilder();
InputStream is = Thread.currentThread().getContextClassLoader().get ResourceAsStream("test.xml");
Document doc =;
XMLOutputter outp = new XMLOutputter();

But the output result miss the attribute "standalone=no" in PI.
as folllowing
<?xml version="1.0" encoding="UTF-8"?>

How can I restore the attribute "standalone=no" in JDOM
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.