[jdom-interest] set standalone value in xml

prashant sharma prash_sharma at yahoo.com
Tue Aug 19 09:16:35 PDT 2003


Hi,
  I have a xml file which looks like
 
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Workspace>
 <Location idref="LIM.11"></Location>
 <TaxArea idref="LIM.10160185991061241"></TaxArea>
 <Model idref="LIM.10160185991061241"></PremisAddressModel>
</Workspace>
 
The code which I use to print the xml is
 

SAXBuilder sb = new SAXBuilder();

Document doc = sb.build("C:/TEMP/xpath/ws.xml");

XMLOutputter xmlOut = new XMLOutputter("\t", true);

xmlOut.output( doc, System.out );

The output which I get is 

<?xml version="1.0" encoding="UTF-8" ?>
<Workspace>
 <Location idref="LIM.11"></Location>
 <TaxArea idref="LIM.10160185991061241"></TaxArea>
 <Model idref="LIM.10160185991061241"></PremisAddressModel>
</Workspace>

It takes the standalone="yes" from the xml. Do I have to set any property. What am I doing wrong.

 

thanks

Prashant



---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20030819/42e4ee0d/attachment.htm


More information about the jdom-interest mailing list