<DIV>Hi,</DIV>
<DIV>&nbsp; I have a xml file which looks like</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;?xml version="1.0" encoding="UTF-8" <STRONG>standalone="yes"</STRONG> ?&gt;<BR>&lt;Workspace&gt;<BR>&nbsp;&lt;Location idref="LIM.11"&gt;&lt;/Location&gt;<BR>&nbsp;&lt;TaxArea idref="LIM.10160185991061241"&gt;&lt;/TaxArea&gt;<BR>&nbsp;&lt;Model idref="LIM.10160185991061241"&gt;&lt;/PremisAddressModel&gt;<BR>&lt;/Workspace&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>The code which I use to print the xml is</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>
<P>SAXBuilder sb = </FONT><B><FONT color=#7f0055 size=2>new</B></FONT><FONT size=2> SAXBuilder();</FONT></P>
<P><FONT size=2>Document doc = sb.build(</FONT><FONT color=#2a00ff size=2>"C:/TEMP/xpath/ws.xml"</FONT><FONT size=2>);</P>
<P>XMLOutputter xmlOut = </FONT><B><FONT color=#7f0055 size=2>new</B></FONT><FONT size=2> XMLOutputter(</FONT><FONT color=#2a00ff size=2>"\t"</FONT><FONT size=2>, </FONT><B><FONT color=#7f0055 size=2>true</B></FONT><FONT size=2>);</FONT><FONT color=#3f7f5f size=2></P></FONT><FONT size=2>
<P>xmlOut.output( doc, System.out );</P>
<P>The output which I get is </P>
<P>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;<BR>&lt;Workspace&gt;<BR>&nbsp;&lt;Location idref="LIM.11"&gt;&lt;/Location&gt;<BR>&nbsp;&lt;TaxArea idref="LIM.10160185991061241"&gt;&lt;/TaxArea&gt;<BR>&nbsp;&lt;Model idref="LIM.10160185991061241"&gt;&lt;/PremisAddressModel&gt;<BR>&lt;/Workspace&gt;</P>
<P>It takes the standalone="yes" from the xml. Do I have to set any property. What am I doing wrong.</P>
<P>&nbsp;</P>
<P>thanks</P>
<P>Prashant</P></FONT></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com">Yahoo! SiteBuilder</a> - Free, easy-to-use web site design software