XmlUtilQuerying a DocumentOn this pageQuerying a Document Select a single node based on XPath $node = $xml->selectSingleNode('//subnode'); Select all nodes based on XPath $nodeList = $xml->selectNodes($myNode, '//subnode');