<doc>
  <legacy_id>2459</legacy_id>
  <name>revXMLTrees</name>
  <type>function</type>
  <syntax>
    <example>revXMLTrees()</example>
  </syntax>
  <library>XML library</library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Text and Data Processing</category>
    <category>Standalone Applications</category>
  </classification>
  <references>
    <command tag="revXMLDeleteAllTrees">revXMLDeleteAllTrees Command</command>
    <function tag="revXMLCreateTree">revXMLCreateTree Function</function>
    <function tag="revXMLCreateTreeFromFile">revXMLCreateTreeFromFile 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> a list of all <glossary tag="XML tree">XML trees</glossary> in memory.</summary>
  <examples>
    <example>revXMLTrees()</example>
    <example>if myTree is not among the lines of revXMLTrees() then loadTree myTree </example>
  </examples>
  <description>
    <p>Use the <b>revXMLTrees</b> <control_st tag="function">function</control_st> to find out which <glossary tag="XML tree">XML trees</glossary> have been created, or when you want to perform an action on all the <glossary tag="XML tree">XML trees</glossary> you're working with.</p><p/><p><b>Value:</b></p><p>The <b>revXMLTrees</b> <control_st tag="function">function</control_st> returns a list of tree IDs, one per <keyword tag="line">line</keyword>.</p><p/><p><b>Comments:</b></p><p>Each tree ID is the number returned by the <b>revXMLCreateTree</b> 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>If the <b>revXMLTrees</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>revXMLTrees</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>