none
I need to convert the string to xml document. RRS feed

  • Question

  • I need to convert the string to xml document.

    How to convert string to xml document   
    Can you help me ?
    Thursday, November 22, 2007 4:20 PM

All replies

  • I didn't fully get your question but is this what you were looking for?

     

    Code Block

    using System.Xml;

     

    XmlDocument xd = new XmlDocument();

    xd.AppendChild(xd.CreateNode(XmlNodeType.XmlDeclaration,"",""));

    xd.AppendChild(xd.CreateElement("Milap").AppendChild(xd.CreateTextNode("How to convert string to xml document")));

    xd.Save("Parikh.xml");

     

    Sunday, November 25, 2007 5:48 AM