XmlNodeList Class
Represents an ordered collection of nodes.
For a list of all members of this type, see XmlNodeList Members.
System.Object
System.Xml.XmlNodeList
[Visual Basic] MustInherit Public Class XmlNodeList Implements IEnumerable [C#] public abstract class XmlNodeList : IEnumerable [C++] public __gc __abstract class XmlNodeList : public IEnumerable [JScript] public abstract class XmlNodeList implements IEnumerable
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
The XmlNodeList collection is "live"; that is, changes to the children of the node object that it was created from are immediately reflected in the nodes returned by the XmlNodeList properties and methods. XmlNodeList supports iteration and indexed access.
XmlNodeList is returned by the following properties and methods.
- XmlNode.ChildNodes- Returns an XmlNodeList containing all the children of the node.
- XmlNode.SelectNodes- Returns an XmlNodeList containing a collection of nodes matching the XPath query.
- GetElementsByTagName- Returns an XmlNodeList containing a list of all descendant elements that match the specified name. This method is available in both the XmlDocument and XmlElement classes.
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
XmlNodeList Members | System.Xml Namespace | Ordered Node Retrieval by Index | XML Document Object Model (DOM)