src/XmlUtil.php
public static function selectNodes(\DOMNode $pNode, $xPath, $arNamespace = null) // <- Retorna N&#65533;!
    {
        if (preg_match('~^/[^/]~', $xPath)) {
            $xPath = substr($xPath, 1);
        }

        $owner = XmlUtil::getOwnerDocument($pNode);
        $xpath = new DOMXPath($owner);
        XmlUtil::registerNamespaceForFilter($xpath, $arNamespace);
        $rNodeList = $xpath->query($xPath, $pNode);

        return $rNodeList;
    }
public static function selectNodes(\DOMNode $pNode, $xPath, $arNamespace = null) // <- Retorna N&#65533;!
    {
        if (preg_match('~^/[^/]~', $xPath)) {
            $xPath = substr($xPath, 1);
        }

        $owner = XmlUtil::getOwnerDocument($pNode);
        $xpath = new DOMXPath($owner);
        XmlUtil::registerNamespaceForFilter($xpath, $arNamespace);
        $rNodeList = $xpath->query($xPath, $pNode);

        return $rNodeList;
    }
public static function selectNodes ( \ DOMNode $ pNode , $ xPath , $ arNamespace = null ) // <- Retorna N&#65533;! { if ( preg_match ( '~^/[^/]~' , $ xPath ) ) { $ xPath = substr ( $ xPath , 1 ) ; } $ owner = XmlUtil :: getOwnerDocument ( $ pNode ) ; $ xpath = new DOMXPath ( $ owner ) ; XmlUtil :: registerNamespaceForFilter ( $ xpath , $ arNamespace ) ; $ rNodeList = $ xpath -> query ( $ xPath , $ pNode ) ; return $ rNodeList ; }
Returns a \DOMNodeList from a relative xPath from other \DOMNode

@param \DOMNode $pNode
@param string $xPath
@param array $arNamespace
@return DOMNodeList
@throws \ByJG\Util\Exception\XmlUtilException
Returns a \ DOMNodeList from a relative xPath from other \ DOMNode