$_xmldoc
$_xmldoc : \DOMDocument
The XML document this object works with.
Provides DOM utility methods.
Copyright 2011-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
storeNewNodeValue(\DOMNode $parent_node, string $name, string $value) : \DOMNode
Store a value as a new text node.
\DOMNode | $parent_node | Attach the new node to this parent. |
string | $name | Name of the new child node. |
string | $value | Text value of the new child node. |
The new child node.
createNodeValue(\DOMNode $parent_node, string $name, string $value) : \DOMNode
Store a value as a new text node.
\DOMNode | $parent_node | Attach the new node to this parent. |
string | $name | Name of the new child node. |
string | $value | Text value of the new child node. |
The new child node.
findNodeRelativeTo(string $query, \DOMNode $context) : \DOMNode|false
Return a single named node below the given context matching the given XPath query.
string | $query | The query. |
\DOMNode | $context | Search below this node. |
The named DOMNode or empty if no node was found.