<doc>
  <legacy_id>2385</legacy_id>
  <name>revXMLAttribute</name>
  <type>function</type>
  <syntax>
    <example>revXMLAttribute(<i>treeID</i>,<i>node</i>,<i>attributeName</i>)</example>
  </syntax>
  <library>XML library</library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Text and Data Processing</category>
    <category>Standalone Applications</category>
  </classification>
  <references>
    <function tag="revXMLAttributes">revXMLAttributes Function</function>
    <function tag="revXMLNodeContents">revXMLNodeContents Function</function>
  </references>
  <history>
    <introduced version="2.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
    <disk access="???"/>
  </security>
  <summary><glossary tag="return">Returns</glossary> the value of the specified <glossary tag="attribute">attribute</glossary> of the specified <glossary tag="node">node</glossary> of an <glossary tag="XML tree">XML tree</glossary>.</summary>
  <examples>
    <example>revXMLAttribute(2,"/","Timestamp")</example>
    <example>put revXMLAttribute(currTree,currNode,the short name of field x) \</p><p>   into field x</example>
  </examples>
  <description>
    <p>Use the <b>revXMLAttribute</b> <control_st tag="function">function</control_st> to get an attribute's value.un</p><p/><p><b>Parameters:</b></p><p>The <i>treeID</i> is the number <glossary tag="return">returned</glossary> by the <function tag="revXMLCreateTree">revXMLCreateTree</function> or <function tag="revXMLCreateTreeFromFile">revXMLCreateTreeFromFile</function> <control_st tag="function">function</control_st> when you created the <glossary tag="XML tree">XML tree</glossary>.</p><p/><p>The <i>node</i> is the path to the node whose attribute value you want to get.</p><p/><p>The <i>attributeName</i> is the name of the attribute.</p><p/><p><b>Value:</b></p><p>The <b>revXMLAttribute</b> <control_st tag="function">function</control_st> returns a <keyword tag="string">string</keyword>.</p><p/><p><b>Comments:</b></p><p>If the <b>revXMLAttribute</b> <control_st tag="function">function</control_st> encounters an error, it <glossary tag="return">returns</glossary> an error message starting with "xmlerr".</p><p/><p><code/><img src="202653"/> <b>Important!</b><code/> The <b>revXMLAttribute</b> <control_st tag="function">function</control_st> is part of the <glossary tag="XML library">XML library</glossary>. To ensure that the <control_st tag="function">function</control_st> works in a <glossary tag="standalone application">standalone application</glossary>, you must include this <glossary tag="LiveCode custom library">custom library</glossary> when you create your <glossary tag="standalone application">standalone</glossary>. In the Inclusions section on the General screen of the <glossary tag="Standalone Application Settings">Standalone Application Settings</glossary> window, make sure "XML Library" is selected in the list of script libraries.</p>
  </description>
</doc>