1 <div class="body-wrap" xmlns:ext="http://www.extjs.com"><div class="top-tools"><a class="inner-link" href="#Ext.ux.tree.XmlTreeLoader-props"><img src="resources/images/default/s.gif" class="item-icon icon-prop">Properties</a> <a class="inner-link" href="#Ext.ux.tree.XmlTreeLoader-methods"><img src="resources/images/default/s.gif" class="item-icon icon-method">Methods</a> <a class="inner-link" href="#Ext.ux.tree.XmlTreeLoader-events"><img src="resources/images/default/s.gif" class="item-icon icon-event">Events</a> <a class="bookmark" href="../docs/?class=Ext.ux.tree.XmlTreeLoader"><img src="resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a> </div><h1>Class <a href="source/ux-all-debug.html#cls-Ext.ux.tree.XmlTreeLoader">Ext.ux.tree.XmlTreeLoader</a></h1><table cellspacing="0"><tr><td class="label">Package:</td><td class="hd-info">Ext.ux.tree</td></tr><tr><td class="label">Defined In:</td><td class="hd-info"><a href="source/ux-all-debug.html#cls-Ext.ux.tree.XmlTreeLoader">ux-all-debug.js</a></td></tr><tr><td class="label">Class:</td><td class="hd-info"><a href="source/ux-all-debug.html#cls-Ext.ux.tree.XmlTreeLoader">XmlTreeLoader</a></td></tr><tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr></table><div class="description"><p>A TreeLoader that can convert an XML document into a hierarchy of <a href="output/Ext.tree.TreeNode.html" ext:cls="Ext.tree.TreeNode">Ext.tree.TreeNode</a>s.
2 Any text value included as a text node in the XML will be added to the parent node as an attribute
3 called <tt>innerText</tt>. Also, the tag name of each XML node will be added to the tree node as
4 an attribute called <tt>tagName</tt>.</p>
5 <p>By default, this class expects that your source XML will provide the necessary attributes on each
6 node as expected by the <a href="output/Ext.tree.TreePanel.html" ext:cls="Ext.tree.TreePanel">Ext.tree.TreePanel</a> to display and load properly. However, you can
7 provide your own custom processing of node attributes by overriding the <a href="output/Ext.ux.tree.XmlTreeLoader.html#Ext.ux.tree.XmlTreeLoader-processNode" ext:member="processNode" ext:cls="Ext.ux.tree.XmlTreeLoader">processNode</a> method
8 and modifying the attributes as needed before they are used to create the associated TreeNode.</p></div><div class="hr"></div><a id="Ext.ux.tree.XmlTreeLoader-props"></a><h2>Public Properties</h2><table cellspacing="0" class="member-table"><tbody><tr><th colspan="2" class="sig-header">Property</th><th class="msource-header">Defined By</th></tr><tr class="property-row "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.ux.tree.XmlTreeLoader-XML_NODE_ELEMENT"></a><b><a href="source/ux-all-debug.html#prop-Ext.ux.tree.XmlTreeLoader-XML_NODE_ELEMENT">XML_NODE_ELEMENT</a></b> : Number<div class="mdesc">XML element node (value 1, read-only)</div></td><td class="msource">XmlTreeLoader</td></tr><tr class="property-row "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.ux.tree.XmlTreeLoader-XML_NODE_ELEMENT"></a><b><a href="source/XmlTreeLoader.html#prop-Ext.ux.tree.XmlTreeLoader-XML_NODE_ELEMENT">XML_NODE_ELEMENT</a></b> : Number<div class="mdesc">XML element node (value 1, read-only)</div></td><td class="msource">XmlTreeLoader</td></tr><tr class="property-row "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.ux.tree.XmlTreeLoader-XML_NODE_TEXT"></a><b><a href="source/ux-all-debug.html#prop-Ext.ux.tree.XmlTreeLoader-XML_NODE_TEXT">XML_NODE_TEXT</a></b> : Number<div class="mdesc">XML text node (value 3, read-only)</div></td><td class="msource">XmlTreeLoader</td></tr><tr class="property-row "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.ux.tree.XmlTreeLoader-XML_NODE_TEXT"></a><b><a href="source/XmlTreeLoader.html#prop-Ext.ux.tree.XmlTreeLoader-XML_NODE_TEXT">XML_NODE_TEXT</a></b> : Number<div class="mdesc">XML text node (value 3, read-only)</div></td><td class="msource">XmlTreeLoader</td></tr></tbody></table><a id="Ext.ux.tree.XmlTreeLoader-methods"></a><h2>Public Methods</h2><div class="no-members">This class has no public methods.</div><a id="Ext.ux.tree.XmlTreeLoader-events"></a><h2>Public Events</h2><div class="no-members">This class has no public events.</div></div>