|
Whitebeam Template Reference Documentation
|
XmlTag Template
find()
Search for named XML tags.
Syntax
XmlTagArray = rb.XmlTag.find(tagName)
Parameters
The 'find' method takes 1 parameter:
Name | Type/Value | Range/Length | Description | tagName | string | | Required. The name of the XML tags for which to search. |
Results
The 'find' method returns an array of structure:
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. |
|
(loadtime : 13ms) |