Flamingo.XPath

XPath object provides several useful methods that will help you get dynamic data from the original website pages.

Flamingo.XPath Methods

Method Description
value() Returns specified value(s) of the specified node found by XPath.
test() Returns TRUE if the specified node is found by XPath and FALSE otherwise.
get() Returns an array of nodes found by XPath.
html() Returns HTML code of the node found by XPath as string.
innerHTML() Returns inner HTML code of the node found by XPath as string.

You can use X alias instead of Flamingo.XPath for shorthand coding. For example, the following two lines of code will do the same:

Flamingo.XPath.value('//title')

-OR-

X.value('//title')

Both statements will take the value of the TITLE element available on the original desktop page.

See also