|
SimpleXMLElement::xpathRuns XPath query on XML data Description
public array SimpleXMLElement::xpath
( string
$path
)
The xpath method searches the SimpleXML node for
children matching the XPath Parameters
Return Values
Returns an array of SimpleXMLElement objects or Examples
Example #1 Xpath
<?php The above example will output: /a/b/c: text /a/b/c: stuff b/c: text b/c: stuff Notice that the two results are equal. See Also
|