protected function removeNodes(DOMDocument $ir, $query, DOMNode $contextNode = null)
	{
		foreach ($this->query($query, $contextNode) as $node)
		{
			if ($node->parentNode instanceof DOMElement)
			{
				$node->parentNode->removeChild($node);
			}
		}
	}
protected function removeNodes(DOMDocument $ir, $query, DOMNode $contextNode = null)
	{
		foreach ($this->query($query, $contextNode) as $node)
		{
			if ($node->parentNode instanceof DOMElement)
			{
				$node->parentNode->removeChild($node);
			}
		}
	}
protected function removeNodes ( DOMDocument $ ir , $ query , DOMNode $ contextNode = null ) { foreach ( $ this -> query ( $ query , $ contextNode ) as $ node ) { if ( $ node -> parentNode instanceof DOMElement ) { $ node -> parentNode -> removeChild ( $ node ) ; } } }
Remove all nodes that match given XPath query

@param  DOMDocument $ir
@param  string      $query
@param  DOMNode     $contextNode
@return void
Remove all nodes that match given XPath query