xmlTreeNewXPath

SYNOPSIS

xmlXPath xmlTreeNewXPath(xmlDoc doc)

Parameters:

  • doc - the xmlDoc to create the XPath for

Returns:

  • the new xmlXPath engine


DESCRIPTION
xmlTreeNewXPath() 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 ALSO
xmlTreeXPathExecute, xmlTreeXPathRegisterNs xmlTreeXPathSetContext


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.