XML Document

Settembre 3rd, 2007

Description: Adding a xml declartaion to and creating a XMLDom

Link: http://www.codekeep.net/snippets/347d467a-45cc-4b0d-90ac-f3cc0ac69e6b.aspx

XmlDocument xDoc = new XmlDocument();

xDoc.LoadXml(xBookingResp.OuterXml.ToString());
XmlNode xNode =xDoc.CreateXmlDeclaration("1.0", "utf-8", null);
xDoc.InsertBefore(xNode, xDoc.DocumentElement);

  • .NET
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.