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.whichIndex()

Return index of child XML element.

Syntax

number = XmlTag.whichIndex(tagName)

Parameters

The 'XmlTag.whichIndex' method takes 1 parameter:

Name Type/Value Range/Length Description
tagNamestruct XmlTag.XmlGenericsee definition Required. Return index of element in parent.

Results

The 'XmlTag.whichIndex' method returns number:

Type/Value Range/Length Description
number   The index in the selected node of the XML element identified by the single parameter.

Remarks

Take a single parameter - an XML element. This can be either a tag XmlTag, text XmlText or one of the other XML elements classes. Look within the array of children of the current element looking for the element referenced in the paremeter. If the element is located then return the zero (0) based index of that element. If the element is not found this method returns a negative number.

Whitebeam release 1.3.36
(loadtime : 11ms)