pQuery\DomNode::setNamespace PHP Method

setNamespace() public method

Set namespace of node
See also: getNamespace()
public setNamespace ( string $ns )
$ns string
    function setNamespace($ns)
    {
        if ($this->getNamespace() !== $ns) {
            $this->tag_ns[0] = $ns;
            $this->tag = $ns . ':' . $this->tag_ns[1];
        }
    }
DomNode