DOMNamedNodeMap
class DOMNamedNodeMap implements IteratorAggregate, Countable (View source)
The DOMNamedNodeMap class
Properties
| int read-only | $length | The number of nodes in the map. The range of valid child node indices is 0 to length - 1 inclusive. |
Methods
DOMNode|null
getNamedItem(string $qualifiedName)
Retrieves a node specified by name
void
removeNamedItem(mixed $name)
No description
DOMNode|null
getNamedItemNS($namespaceURI = '', string|null $namespace, string $localName)
Retrieves a node specified by local name and namespace URI
removeNamedItemNS(mixed $namespace, mixed $localName)
No description
int
count()
Get number of nodes in the map
getIterator()
Retrieve an external iterator
Details
DOMNode|null
getNamedItem(string $qualifiedName)
Retrieves a node specified by name
void
setNamedItem(DOMNode $arg)
No description
removeNamedItem(mixed $name)
No description
DOMNode|null
item(int $index)
Retrieves a node specified by index
DOMNode|null
getNamedItemNS($namespaceURI = '', string|null $namespace, string $localName)
Retrieves a node specified by local name and namespace URI
setNamedItemNS(DOMNode $arg)
No description
removeNamedItemNS(mixed $namespace, mixed $localName)
No description
int
count()
Since: 7.2
Get number of nodes in the map
Gets the number of nodes in the map.
Traversable
getIterator()
Since: 8.0
Retrieve an external iterator
Returns an external iterator for the named node map.