Whitebeam Object Definition

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Object Definition

Method Description

XmlGeneric.xpath()

Execute an XPath 1.0 exression

See Also

XmlGeneric.select()

Syntax

MetaData Object = XmlGeneric.xpath(xpathExr)

Parameters

The 'XmlGeneric.xpath' method takes 1 parameter:

Name Type/Value Range/Length Description
xpathExrstring  Required. XPath 1.0 exression

Results

The 'XmlGeneric.xpath' method returns a JavaScript object containing arbitrary attributes (Meta Value):

Type/Value Range/Length Description
MetaData  

Remarks

Execute an XPath 1.0 exression, using the selected XmlGeneric as the initial context node for the query. See the XPath Tutorial for examples of how to use this method, and for a primer on XPath syntax.

An XPath expression can result in one of a number of types - depending on the expression. This method creates an appropriate JavaScript value to represent the XPath result as follows:

XPath ResultJavaScript Type
booleanboolean
stringString
numberNumber
node setinstance of XmlNodeSet.

Whitebeam release 1.3.36
(loadtime : 31ms)