Creating XmlElements

To create an XmlElement, the XmlDocument provides the CreateElement methods. The methods create an XmlElement node with the specified name and an optional namespace. This code illustrates how to create an element:

C#
XmlElement newElement = xmlDoc.CreateElement("Book");

VB
Dim newElement As xmlDoc.CreateElement("Book")

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.205.235