SYNOPSISxmlXPath xmlTreeNewXPath(xmlDoc doc)
Parameters:
doc
- the xmlDoc
to create the XPath for
Returns:
xmlXPath
engine
DESCRIPTIONxmlTreeNewXPath()
creates a new xmlXPath
engine to use on
the XML document doc
. The xmlXPath
object is tied to
the doc, so each document needs its own xmlXPath
object.
This object can then be used in xmlTreeXPathExecute()
to execute
XPath expressions.
EXAMPLE<$xpath = (xmlTreeNewXPath($doc))>
SEE ALSOxmlTreeXPathExecute
,
xmlTreeXPathRegisterNs
xmlTreeXPathSetContext