XmlElement Class Home
This page is specific to:.NET Framework Version:1.12.03.03.54.0
.NET Framework Class Library
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

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View