public function loadDomNodeList(\DOMNodeList $dom_node_list)
    {
        if (!isset($this->document) && $dom_node_list->length === 0) {
            throw new \Exception('DOMDocument is missing!');
        }

        if ($dom_node_list->length > 0) {
            $this->setDomDocument($dom_node_list->item(0)->ownerDocument);
        }

        foreach ($dom_node_list as $node) {
            $this->addDomNode($node);
        }
    }
public function loadDomNodeList(\DOMNodeList $dom_node_list)
    {
        if (!isset($this->document) && $dom_node_list->length === 0) {
            throw new \Exception('DOMDocument is missing!');
        }

        if ($dom_node_list->length > 0) {
            $this->setDomDocument($dom_node_list->item(0)->ownerDocument);
        }

        foreach ($dom_node_list as $node) {
            $this->addDomNode($node);
        }
    }
public function loadDomNodeList ( \ DOMNodeList $ dom_node_list ) { if ( ! isset ( $ this -> document ) && $ dom_node_list -> length === 0 ) { throw new \ Exception ( 'DOMDocument is missing!' ) ; } if ( $ dom_node_list -> length > 0 ) { $ this -> setDomDocument ( $ dom_node_list -> item ( 0 ) -> ownerDocument ) ; } foreach ( $ dom_node_list as $ node ) { $ this -> addDomNode ( $ node ) ; } }
Add nodes from dom node list to result set

@param \DOMNodeList $dom_node_list

@return void
@throws \Exception if no document is set and list is empty
Add nodes from dom node list to result set