By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,591 Members | 629 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,591 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
message

<?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 = builder.build(is);
XMLOutputter outp = new XMLOutputter();
System.out.println(outp.outputString(doc));

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
FilexBB
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.