|
|
XML::GDOME::NamedNodeMap - Interface NamedNodeMap implementation.
$int = $nnm->getLength(); $node = $nnm->getNamedItem($name); $node = $nnm->getNamedItemNS($namespaceURI,$localName); $node = $nnm->item($index); $node = $nnm->removeNamedItem($name); $node = $nnm->removeNamedItemNS($namespaceURI,$localName); $node = $nnm->setNamedItem($arg); $node = $nnm->setNamedItemNS($arg);
name
: The nodeName of the node to retrieve.
Returns: a Node (of any type) with the specified nodeName, or undef if it does not identify any node in this map.
namespaceURI
: The namespace URI of the node to retrieve.
localName
: The local name of the node to retrieve.
Returns: a Node (of any type) with the specified local name and namespace URI, or undef if they do not identify any node in this map.
index
: Index into this map.
Returns: the indexth item in the map. If index is greater than or equal to the number of nodes in this map, this returns undef.
name
: The nodeName of the node to remove.
Returns: the node removed from this map if a node with such a name exists.
GDOME_NO_MODIFICATION_ALLOWED_ERR
: Raised if this map is readonly.
GDOME_NOT_FOUND_ERR
: Raised if there is no node named name in this map.
namespaceURI
: The namespace URI of the node to remove.
localName
: The local name of the node to remove.
Returns: the node removed from this map if a node with such a local name and namespace URI exists.
GDOME_NO_MODIFICATION_ALLOWED_ERR
: Raised if this map is readonly.
GDOME_NOT_FOUND_ERR
: Raised if there is no node named name in this map.
arg
: a node to store in this map.
Returns: if the new Node replaces an existing node, the replaced Node is returned, otherwise undef is returned.
GDOME_INUSE_ATTRIBUTE_ERR
: Raised if arg is an Attr that is already an attribute of another Element object. The DOM user must explicitly clone Attr nodes to re-use them in other elements.
GDOME_NO_MODIFICATION_ALLOWED_ERR
: Raised if this map is readonly.
GDOME_HIERARCHY_REQUEST_ERR
: Raised if an attempt is made to add a node doesn't belong in this NamedNodeMap. Examples would include trying to insert something other than an Attr node into an Element's map of attributes, or a non-Entity node into the DocumentType's map of Entities.
GDOME_WRONG_DOCUMENT_ERR
: Raised if arg was created from a different document than the one that created this map.
arg
: a node to store in this map. The node will later be accessible using the value of its namespaceURI and localName attributes.
Returns: If the new Node replaces an existing node the replaced Node is returned, otherwise null is returned.
GDOME_INUSE_ATTRIBUTE_ERR
: Raised if arg is an Attr that is already an attribute of another Element object. The DOM user must explicitly clone Attr nodes to re-use them in other elements.
GDOME_NO_MODIFICATION_ALLOWED_ERR
: Raised if this map is readonly.
GDOME_HIERARCHY_REQUEST_ERR
: Raised if an attempt is made to add a node doesn't belong in this NamedNodeMap. Examples would include trying to insert something other than an Attr node into an Element's map of attributes, or a non-Entity node into the DocumentType's map of Entities.
GDOME_WRONG_DOCUMENT_ERR
: Raised if arg was created from a different document than the one that created this map.