|
|
|
File: /usr/local/apache_8080/htdocs/devel/Intra/class/phpdom/domxml_xpath.php
Document Object Model for PHP - phpDOM
XPath
XPath
The XPath Class
|
private class XPath
The XPath Class
enables searching an XML document with XPATH.Currently, it is not possible to set another context as the root node!!
|
| |
|
|
|
Private Field Summary |
| object XPathContext |
$xpath_contextAn XPathContext object, used for the eval function. |
|
Public Method Details |
XPath |
|
public void XPath( object Document $document )
|
| |
Constructor
The constructor requires the Document object as a paramteter. The context will beset on the root node of the given document.
|
| Parameter |
|
| object Document |
$document |
|
|
The document object |
|
| Returns |
void |
|
evaluate |
|
public object NodeList evaluate( string $search )
|
| |
eval evaluates an search path.
Examples://child::* -> selects all element child nodes//child::text() -> selects all text nodes
|
| Parameter |
|
| string |
$search |
|
|
search path for the document |
|
| Returns |
object NodeList |
|
|
Private Field Details |
$xpath_context |
|
private object XPathContext $xpath_context
>><<
An XPathContext object, used for the eval function.
|
|
|
|
|
|
| PHPDoc 1.0beta |