Mono Class Library: System.Xml.XmlDocument Overview | Members

System.Xml.XmlDocument.GetElementsByTagName Method

Returns a node list which contains descendant elements of this document which match the specified name. [Edit]

public virtual XmlNodeList GetElementsByTagName (string name)

Parameters

name
Name of the target elements to find. [Edit]

Returns

System.Xml.XmlNodeList that contains the resulting elements. [Edit]

Remarks

It searches such descendant element nodes of this document whose name matches the argument, and returns the list of the matching nodes as an System.Xml.XmlNodeList.

If name is "*", then it indicates to match all of the elements.

Note that it searches the entire descendants, not limited to the children. Also note that it returns only element nodes.

[Edit]

Requirements

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