Name
getElementsByTagNameNS: namespaceURI,
localName(2)
Synopsis
Like the getElementsByTagName
method, returns a
list of Element
nodes
(descendants of the Element
node on which the method is called) that match the criteria given
in the namespaceURI
and
localName
parameters. The
resulting list contains all elements matching the namespace URI
and local name restrictions, as they would be encountered in a
preorder traversal of the document tree.
Arguments
- namespaceURI: DOMString
The namespace URI of elements to be matched. The special * value matches any namespace.
- localName: DOMString
The local name part of elements to be matched. The special value * matches any local name.
Java binding
public NodeList getElementsByTagNameNS(String namespaceURI, String localName);
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.