XmlDocument.LoadXml(String xmlString) : XmlDocument « System.Xml « C# / C Sharp by API






XmlDocument.LoadXml(String xmlString)

  

using System;
using System.Xml;

class MainClass
{
  static void Main(string[] args)
  {
    XmlDocument xmlDoc = new XmlDocument();    
    xmlDoc.LoadXml("<Record> write something</Record>");

        xmlDoc.Save(Console.Out);
  }    
 
}

   
    
  








Related examples in the same category

1.new XmlDocument()
2.XmlDocument.AppendChild(XmlNode docNode)
3.XmlDocument.CreateComment(String comments)
4.XmlDocument.CreateElement
5.XmlDocument.CreateXmlDeclaration
6.XmlDocument.Save()
7.XmlDocument.SelectNodes
8.XmlDocument.SelectSingleNode