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

XmlTag.find()

Search for named XML tags.

Syntax

XmlTag.XmlTagArray = XmlTag.find(tagName)

Parameters

The 'XmlTag.find' method takes 1 parameter:

Name Type/Value Range/Length Description
tagNamestring  Required. The name of the XML tags for which to search.

Results

The 'XmlTag.find' method returns an array of structure:

Type/Value Range/Length Description
struct XmlTag.XmlTag see definition Array of XmlTag objects.

Remarks

Search an XML subtree from the selected element for all tags with the specified name (for which the tag.name attribute matches the parameter specified in the call).

Example

Consider the following call:

var tags = parser.root.find("price");

Applied to the following document:

<doc>
   <product name="camera">
      <price value="100" units='UKP">
   </price>
   <product name="video">
      <price value="249.95" units='UKP">
   </price>
</doc>

The call 'find' call will yield the two 'price' tags within the document.

Whitebeam release 1.3.36
(loadtime : 15ms)