Link Search Menu Expand Document

XmlElement.GetElementsByTagNameNS Method

Explanation Search for Element nodes by namespace URI and tag name to get a list of matching Element nodes.
Not supported in Mobile, AI
Call format var list = elm.GetElementByTagNameNS( namespaceURI, tagName )
Return value XmlNodeList object containing Element nodes that match the criteria If not found, it returns an empty XmlNodeList object.
Arguments String namespaceURI Namespace URI to search
String tagName Tag name to search
Exception None
Example of use
    var domimpl = new XmlDOMImplementation;
    var res = session.Get("/test/sample.xml");
    var xmldoc = domimpl.Load(res);
    var elm = xmldoc.DocumentElement;
    var list = elm.GetElementByTagNameNS("http://www.w3.org/2000/svg", "rect");
    
Related item XmlNodeList, XmlElement class
GetElementsByTagName method