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 localName, string namespaceURI)

Parameters

localName
Local name of the target elements to find. [Edit]
namespaceURI
Namespace URI 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 local name and namespace URI matches the arguments, and returns the list of the matching nodes as an System.Xml.XmlNodeList.

If localName is "*", then it indicates to match any of the local name of the elements. If namespaceURI is "*", then it indicates to match any of the namespace URI 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