|
DOMDocument::getElementsByTagNameNSSearches for all elements with given tag name in specified namespace Description
public DOMNodeList DOMDocument::getElementsByTagNameNS(stringnull
$namespace , string $localName )Returns a DOMNodeList of all elements with a given local name and a namespace URI. Parameters
Return ValuesA new DOMNodeList object containing all the matched elements. Changelog
Examples
Example #1 Get all the XInclude elements
The above example will output: local name: include, prefix: xi local name: fallback, prefix: xi See Also
|