XmlElement Class

XmlElement Class

Represents an element.

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


[Visual Basic]
Public Class XmlElement
   Inherits XmlLinkedNode
public class XmlElement : XmlLinkedNode
public __gc class XmlElement : public XmlLinkedNode
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.


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.


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

© 2015 Microsoft