メインコンテンツまでスキップ
バージョン:25.2

_attributes

  • Special property key for trees (STTreeNode.xmodule)
    • 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: _children, _tag