Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


How to load xml into an XDocument without indentation

From: "Rahul Aggarwal" <rahul.aggarwal@--------------.--->
To: 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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>XDocument.Load(filename)&nbsp; =
is indenting=20
the XML that is being loaded</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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--



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent