_attributes
Special Property Key (STTreeNode.xmodule)
A special property key for use with trees. Accesses the attributes of a tree node as a property list.
Example:
set myXML to {{
<plant type="shrub" height="3-6 ft">alpine currant</plant>
}}
put myXML as tree into myPlant
put the _attributes of myPlant --> {height:"3-6 ft", type:"shrub"}
set myPlant._attributes.use to "border"
put myPlant --> <plant type="shrub" height="3-6 ft" use="border">alpine currant</plant>
Related Terms
Related terms in the SenseTalk Dictionary:
Further Reading
Resources in our other reference manuals:
- Three Special Properties:
_tag,_children,_attributes - Using XML and Tree Structures in SenseTalk Scripts
ノート
This page is under construction: it has not been reviewed for completeness.