|
Whitebeam Template Reference Documentation
|
XmlTag Template
findId()
Search for XML tags with a specific ID.
Syntax
XmlTagArray = rb.XmlTag.findId(tagName)
Parameters
The 'findId' method takes 1 parameter:
Name | Type/Value | Range/Length | Description | tagName | string | | Required. The string ID XML tags for which to search. |
Results
The 'findId' method returns an array of structure:
Remarks
Search an XML subtree from the selected element for all tags for which the
string parameter matches the value of their ID parameter. The 'id' can have been set using
either
tag.mark()
or the rb:id attribure in Whitebeam Presentation Pages.
Example Consider the following call:
var tags = parser.root.findId("kodak");
Applied to the following document:
<doc>
<product name="camera" rb:id="kodak">
<price value="100" units='UKP">
</price>
<product name="video">
<price value="249.95" units='UKP">
</price>
</doc>
The call 'find' call will yield a JavaScript array containing a single element that
reference the first product element.
|
|
(loadtime : 14ms) |