src/Parser.php
private function getEqualNodes(DOMElement $node, $prefix = null)
    {
        $name = $this->prefixKey($node->nodeName, $prefix);

        return $node->xpath(
            sprintf(".|following-sibling::*[name() = '%s']|preceding-sibling::*[name() = '%s']", $name, $name)
        );
    }
private function getEqualNodes(DOMElement $node, $prefix = null)
    {
        $name = $this->prefixKey($node->nodeName, $prefix);

        return $node->xpath(
            sprintf(".|following-sibling::*[name() = '%s']|preceding-sibling::*[name() = '%s']", $name, $name)
        );
    }
private function getEqualNodes ( DOMElement $ node , $ prefix = null ) { $ name = $ this -> prefixKey ( $ node -> nodeName , $ prefix ) ; return $ node -> xpath ( sprintf ( ".|following-sibling::*[name() = '%s']|preceding-sibling::*[name() = '%s']" , $ name , $ name ) ) ; }
A lookahead to find sibling elements with similar names.

@param DOMElement $node the node in charge.
@param string     $prefix the element prefix

@return \DOMNodeList
A lookahead to find sibling elements with similar names .