Export (0) Print
Expand All
2 out of 4 rated this helpful - Rate this topic

XmlElement Class

Represents an element.

For a list of all members of this type, see XmlElement Members.

System.Object
   System.Xml.XmlNode
      System.Xml.XmlLinkedNode
         System.Xml.XmlElement

[Visual Basic]
Public Class XmlElement
   Inherits XmlLinkedNode
[C#]
public class XmlElement : XmlLinkedNode
[C++]
public __gc class XmlElement : public XmlLinkedNode
[JScript]
public class XmlElement extends XmlLinkedNode

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

Elements are one of the most common nodes in the W3C Document Object Model (DOM). Elements can have attributes associated with them. The XmlElement class has many methods for accessing attributes (GetAttribute, SetAttribute, RemoveAttribute, GetAttributeNode, and so on). You can also use the Attributes property which returns an XmlAttributeCollection enabling you to access attributes by name or index from the collection.

Requirements

Namespace: System.Xml

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System.Xml (in System.Xml.dll)

See Also

XmlElement Members | System.Xml Namespace | XmlDocument.CreateElement | Accessing Attributes in the DOM | XML Document Object Model (DOM) | XmlAttribute | XmlDocument

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.