System.Xml.XmlElement Class

Represents an element.

See Also: XmlElement Members

Syntax

public class XmlElement : XmlLinkedNode, IHasXmlChildNode

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 (XmlElement.GetAttribute(string), XmlElement.SetAttribute(string, string), XmlElement.RemoveAttribute(string), XmlElement.GetAttributeNode(string), and so on). You can also use the XmlElement.Attributes property which returns an System.Xml.XmlAttributeCollection enabling you to access attributes by name or index from the collection.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0