runXPath

Execute the given XPath command on the given XML Document or XML Element and return the results as a NodeList.

ogscript.runXPath (XPath, Document);

or

ogscript.runXPath (XPath, Element);

Parameters

Parameter

Type

Required

Description

XPath

String

Yes

The XPath command to execute on the given XML Document or XML Element

Document

String

Yes

XML Document on which to execute the given XPath command.

Element

 

Yes

XML Element on which to execute the given XPath command.

For more information about the required parameters, refer to the following URLs:

·         http://docs.oracle.com/javase/6/docs/api/org/w3c/dom/Document.html

·         http://docs.oracle.com/javase/6/docs/api/org/w3c/dom/Element.html

·         http://docs.oracle.com/javase/6/docs/api/org/w3c/dom/NodeList.html

·         http://www.w3schools.com/xpath/

Returns

NodeList

Example

Coming soon.