Creating XmlElement s


Creating XmlElement s

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") 


Microsoft.NET Compact Framework Kick Start
Microsoft .NET Compact Framework Kick Start
ISBN: 0672325705
EAN: 2147483647
Year: 2003
Pages: 206

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net