[jdom-interest] set standalone value in xml
laurent.bihanic at atosorigin.com
Fri Aug 22 01:56:42 PDT 2003
prashant sharma wrote:
> It takes the standalone="yes" from the xml. Do I have to set any
> property. What am I doing wrong.
You're not doing anything wrong! But there are 2 points you need to know:
1. SAX 2.0 parsers do not pass on the standalone information to the
appalication (JDOM) so JDOM can't know whether this flag was set. As a
consequence, no standalone flag exists in JDOM Document class.
2. XMLOutputter does not support inserting the standalone flag in XML header.
More information about the jdom-interest