<doc>
  <legacy_id>1046</legacy_id>
  <name>revXMLDeleteNode</name>
  <type>command</type>
  <syntax>
    <example>revXMLDeleteNode <i>treeID</i>,<i>nodeToDelete</i></example>
  </syntax>
  <library>XML library</library>
  <objects>
  </objects>
  <synonyms>revDeleteXMLNode
  </synonyms>
  <classification>
    <category>Text and Data Processing</category>
    <category>Standalone Applications</category>
  </classification>
  <references>
    <command tag="revXMLAddNode">revXMLAddNode Command</command>
    <command tag="revXMLDeleteTree">revXMLDeleteTree Command</command>
    <message tag="revEndXMLNode">revEndXMLNode Message</message>
    <command tag="revXMLPutIntoNode">revXMLPutIntoNode Command</command>
    <message tag="revStartXMLNode">revStartXMLNode Message</message>
    <function tag="revXMLRootNode">revXMLRootNode Function</function>
    <function tag="revXMLNodeContents">revXMLNodeContents Function</function>
  </references>
  <history>
    <introduced version="2.0">Added.</introduced>
    <changed version="6.5"></changed>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
    <disk access="???"/>
  </security>
  <summary>Removes a <glossary tag="node">node</glossary> from an <glossary tag="XML tree">XML tree</glossary>.</summary>
  <examples>
    <example>revXMLDeleteNode 3,"/Works/Books/Fiction"</example>
    <example>revXMLDeleteNode line 3 of theTrees,currNodePath</example>
  </examples>
  <description>
    <p>Use the <b>revXMLDeleteNode</b> <glossary tag="command">command</glossary> to remove part of an <glossary tag="XML tree">XML tree</glossary> you're working with.</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>nodeToDelete</i> is the path to the <glossary tag="node">node</glossary> you want to remove.</p><p/><p><b>Comments:</b></p><p>If the <b>revXMLDeleteNode</b> <glossary tag="command">command</glossary> encounters an error, the <function tag="result">result</function> is set to an error message beginning with "xmlerr".</p><p/><p><code/><img src="202653"/> <b>Important!</b><code/> The <b>revXMLDeleteNode</b> <glossary tag="command">command</glossary> is part of the <glossary tag="XML library">XML library</glossary>. To ensure that the <glossary tag="command">command</glossary> 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>
