XmlNodeList Class
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Represents an ordered collection of nodes.
Assembly: System.Xml (in System.Xml.dll)
Name | Description | |
---|---|---|
![]() | XmlNodeList() | Initializes a new instance of the XmlNodeList class. |
Name | Description | |
---|---|---|
![]() | Count | Gets the number of nodes in the XmlNodeList. |
![]() | ItemOf[Int32] | Gets a node at the given index. |
Name | Description | |
---|---|---|
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetEnumerator() | Gets an enumerator that iterates through the collection of nodes. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | Item(Int32) | Retrieves a node at the given index. |
![]() | MemberwiseClone() | |
![]() | PrivateDisposeNodeList() | Disposes resources in the node list privately. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
Name | Description | |
---|---|---|
![]() ![]() | IDisposable.Dispose() | Releases all resources used by the XmlNodeList class. |
Name | Description | |
---|---|---|
![]() | AsParallel() | Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.) |
![]() | AsQueryable() | Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.) |
![]() | Cast<TResult>() | Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.) |
![]() | OfType<TResult>() | Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.) |
Changes to the children of the node object that the XmlNodeList collection 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.
Available since 10
.NET Framework
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.