|
DOMDocument::getElementsByTagNameNSSearches for all elements with given tag name in specified namespace Description
public DOMNodeList DOMDocument::getElementsByTagNameNS
( string
$namespaceURI
, 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. Examples
Example #1 Get all the XInclude elements
<?php The above example will output: local name: include, prefix: xi local name: fallback, prefix: xi See Also
|