<doc>
	<legacy_id>1343</legacy_id>
	<name>revXMLFirstChild</name>
	<type>function</type>

	<syntax>
		<example>revXMLFirstChild(<i>treeID</i>,<i>parentNode, </i>[ incText ])</example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary><glossary tag="return">Returns</glossary> the path to a node's first <glossary tag="child node">child node</glossary>.</summary>

	<examples>
<example>revXMLFirstChild(1,"/State/City")</example>
<example>put revXMLFirstChild(thisTree,thisNode) into thisNode</example>
	</examples>

	<history>
		<introduced version="2.0">Added.</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		<changed version="4.6">4.6</changed>
		<experimental version=""></experimental>
		<nonexperimental version=""></nonexperimental>
	</history>

	<objects>
	</objects>

	<platforms>
		<mac/>
		<windows/>
		<linux/>
		<ios/>
		<android/>
	</platforms>

	<classes>
		<desktop/>
		<server/>
		<web/>
		<mobile/>
	</classes>

	<security>
		<disk/>
	</security>


	<classification>
		<category>Text and Data Processing</category>
		<category>Standalone Applications</category>
	</classification>

	<references>
		<function tag="revXMLRootNode">revXMLRootNode Function</function>
		<function tag="revXMLChildNames">revXMLChildNames Function</function>
		<function tag="revXMLNextSibling">revXMLNextSibling Function</function>
		<function tag="revXMLPreviousSibling">revXMLPreviousSibling Function</function>
		<function tag="revXMLParent">revXMLParent Function</function>
		<function tag="revXMLNumberOfChildren">revXMLNumberOfChildren Function</function>
	</references>

	<description>
	<overview>Use the <b>revXMLFirstChild</b> <control_st tag="function">function</control_st> to begin scanning the <glossary tag="child node">child nodes</glossary> of a <glossary tag="parent node">parent node</glossary>.</overview>

		<parameters>
<parameter>
<name>treeID</name>
<description>The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile function when you created the XML tree.</description>
</parameter>
<parameter>
<name>parentNode</name>
<description>The path to the node whose child node you want to find.</description>
</parameter>		</parameters>

	<value>The <b>revXMLFirstChild</b> <control_st tag="function">function</control_st> returns a <keyword tag="string">string</keyword> consisting of the path to the first child node.</value>
	<comments>If the <b>revXMLFirstChild</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></p><note>If the <b>incText</b> form is specified and is true the function will return text nodes in processing. Text nodes can be accessed using the revXMLNodeContents function with the extended path format where text only nodes are numerically indexed eg summary/command/[1] is the first text node of the summary/command node.  </note><p></p><important>The incText form is experimental.</important><p></p><p></p><important>The <b>revXMLFirstChild</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.</important></comments>
	</description>
</doc>