.NET Framework Class Library
XmlNode Class

Represents a single node in the XML document.

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

Visual Basic (Declaration)
Public MustInherit Class XmlNode _
    Implements ICloneable, IEnumerable, IXPathNavigable
Visual Basic (Usage)
Dim instance As XmlNode
C#
public abstract class XmlNode : ICloneable, 
    IEnumerable, IXPathNavigable
Visual C++
public ref class XmlNode abstract : ICloneable, 
    IEnumerable, IXPathNavigable
JScript
public abstract class XmlNode implements ICloneable, IEnumerable, IXPathNavigable
Remarks

This class implements the W3C Document Object Model (DOM) Level 1 Core and the Core DOM Level 2. The DOM is an in-memory (cache) tree representation of an XML document. XmlNode is the base class in the.NET implementation of the DOM. It supports XPath selections and provides editing capabilities. The XmlDocument class extends XmlNode and represents an XML document. You can use XmlDocument to load and save XML data. It also includes methods for node creation. See XML Document Object Model (DOM) for more information.

Security noteSecurity Note:

Exceptions raised as a result of using the XmlNode class, such as the XmlException class may contain sensitive information that should not be exposed in untrusted scenarios. Exceptions should be properly handled so that this sensitive information is not exposed in untrusted scenarios.

Inheritance Hierarchy

System..::.Object
  System.Xml..::.XmlNode
    System.Xml..::.XmlAttribute
    System.Xml..::.XmlDocument
    System.Xml..::.XmlDocumentFragment
    System.Xml..::.XmlEntity
    System.Xml..::.XmlLinkedNode
    System.Xml..::.XmlNotation
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.
Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

XNA Framework

Supported in: 3.0, 2.0, 1.0
See Also

Reference

Other Resources


XmlNode Members
XmlNode Methods
XmlNode Properties

MSDN Library
.NET Development
.NET Framework 3.5
.NET Framework Class Library
System.Xml Namespace
XmlNode Class
Tags: 
 
Community Content
XmlNode Creator   Last Edit 5:57 AM by antonpious   
I thought after so many releases of .net framework there would be some improvements in xml parsing.

Is it possible for creating a simple xmlnode from string with a lightweight class without using the bulky and ugly XmlDocument class which takes care of all under one roof xml operations?
Tags: xmldocument xmlnode 
Actually yes there is   Last Edit 1:05 AM by Joshua Einstein   
There is System.Xml.Linq. You can do XElement.Parse("<blah />") to load an Xml Element.
Tags: