Packageindex Classtrees Modulegroups Elementlist Report XML Files

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!!

AuthorsDietmar Glachs <dietmar.glachs@salzburgresearch.at>
Versiondevel.0.4
Copyright2000 Salzburg Research Gesellschaft m.b.H.

 

Public Method Summary

void

XPath(object Document $document)

Constructor
object NodeList

evaluate(string $search)

eval evaluates an search path.

Private Field Summary

object XPathContext

$xpath_context

An 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.



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta