Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: How to load xml into an XDocument without indentation How to load xml into an XDocument without indentationTo: NULL Date: 11/6/2009 4:55:00 PM This is a multi-part message in MIME format. ------=_NextPart_000_0016_01CA5F01.E0933430 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I am trying to load xml into XDocument using XDocument.Load(filename). = The cml in the file is not indented but when the xml gets loaded into = the XDocument, it gets indented. The content I am loading is mixed = content which causes issues for me. I have looked a lot but have not = been able to figure out the answer.=20 XDocument.Load(filename) is indenting the XML that is being loaded Thanks Rahul ------=_NextPart_000_0016_01CA5F01.E0933430 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.6000.16915" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY> <DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I am trying to load xml into XDocument = using=20 XDocument.Load(filename). The cml in the file is not indented but when = the xml=20 gets loaded into the XDocument, it gets indented. The content I am = loading is=20 mixed content which causes issues for me. I have looked a lot but have = not been=20 able to figure out the answer. </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><STRONG>XDocument.Load(filename) = is indenting=20 the XML that is being loaded</STRONG></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Rahul</FONT></DIV></BODY></HTML> ------=_NextPart_000_0016_01CA5F01.E0933430-- | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
