<doc>
	<legacy_id></legacy_id>
	<name>revXMLEvaluateXPath</name>
	<type>function</type>

	<syntax>
		<example>revXMLEvaluateXPath(pDocID, pXPathExpression [, charDelimiter ] )</example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary>The charDelimiter defaults to cr. If not specified then the items will be returned one per line:<p>J. K. Rowling</p><p>Harry Potter</p><p>Cory Doctorow</p><p>Little Brother</p></summary>

	<examples>
<example><p>put "/bookstore/book/[price&lt;40]/" into pXPathExpression</p><p>put revXMLEvaluateXPath(pDocID, pXPathExpression)</p></example>
	</examples>

	<history>
		<introduced version="6.5">Added.</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		
		<experimental version=""></experimental>
		<nonexperimental version=""></nonexperimental>
	</history>

	<objects>
	</objects>

	<platforms>
		<mac/>
		<windows/>
		<linux/>
		<ios/>
		<android/>
		<windows_mobile/>
		<linux_mobile/>
	</platforms>

	<classes>
		<desktop/>
		<server/>
		<web/>
		<mobile/>
	</classes>

	<security>
	</security>


	<classification>
		<category>XML</category>
	</classification>

	<references>
		<function tag="revXMLDataFromXPathQuery">revXMLDataFromXPathQuery</function>
		<function tag="revXMLCreateTree">revXMLCreateTree</function>
		<function tag="revXMLCreateTreeFromFile">revXMLCreateTreeFromFile</function>
	</references>

	<description>The revXMLEvaluateXPath function returns the data set resulting from evaluating the xpath expression against the specified xml tree. For instance, given xml data of<p></p><p>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;</p><p>&lt;bookstore&gt;</p><p>&lt;book category="COOKING"&gt;</p><p>  &lt;title lang="en"&gt;Everyday Italian&lt;/title&gt;</p><p>  &lt;author&gt;Giada De Laurentiis&lt;/author&gt;</p><p>  &lt;year&gt;2005&lt;/year&gt;</p><p>  &lt;price&gt;30.00&lt;/price&gt;</p><p>&lt;/book&gt;</p><p>&lt;book category="CHILDREN"&gt;</p><p>  &lt;title lang="en"&gt;Harry Potter&lt;/title&gt;</p><p>  &lt;author&gt;J K. Rowling&lt;/author&gt;</p><p>  &lt;year&gt;2005&lt;/year&gt;</p><p>  &lt;price&gt;29.99&lt;/price&gt;</p><p>&lt;/book&gt;</p><p>&lt;book category="WEB"&gt;</p><p>  &lt;title lang="en"&gt;XQuery Kick Start&lt;/title&gt;</p><p>  &lt;author&gt;James McGovern&lt;/author&gt;</p><p>  &lt;author&gt;Per Bothner&lt;/author&gt;</p><p>  &lt;author&gt;Kurt Cagle&lt;/author&gt;</p><p>  &lt;author&gt;James Linn&lt;/author&gt;</p><p>  &lt;author&gt;Vaidyanathan Nagarajan&lt;/author&gt;</p><p>  &lt;year&gt;2003&lt;/year&gt;</p><p>  &lt;price&gt;49.99&lt;/price&gt;</p><p>&lt;/book&gt;</p><p>&lt;book category="WEB"&gt;</p><p>  &lt;title lang="en"&gt;Learning XML&lt;/title&gt;</p><p>  &lt;author&gt;Erik T. Ray&lt;/author&gt;</p><p>  &lt;year&gt;2003&lt;/year&gt;</p><p>  &lt;price&gt;39,95&lt;/price&gt;</p><p>&lt;/book&gt;</p><p>&lt;/bookstore&gt;</p><p></p><p>then</p><p></p><p>put "/bookstore/book/[price&lt;40]/" into pXPathExpression</p><p>put revXMLEvaluateXPath(pDocID, pXPathExpression)</p><p></p><p>gives you </p><p></p><p>bookstore/book[1]</p><p>bookstore/book[2]</p><p>bookstore/book[4]</p></description>
</doc>