You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*This file is part of Ext JS 3.4
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License UsageThis file may be used under the terms of the GNU General Public License version 3.0 aspublished by the Free Software Foundation and appearing in the file LICENSE included in thepackaging of this file.
Please review the following information to ensure the GNU General Public License version 3.0requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you are unsure which license is appropriate for your use, please contact the sales departmentat http://www.sencha.com/contact.
Build date: 2013-04-03 15:07:25*/Ext.data.JsonP.Ext_data_XmlStore({"alternateClassNames":[],"aliases":{"widget":["xmlstore"]},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":"Ext.data.Store","uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.util.Observable' rel='Ext.util.Observable' class='docClass'>Ext.util.Observable</a><div class='subclass '><a href='#!/api/Ext.data.Store' rel='Ext.data.Store' class='docClass'>Ext.data.Store</a><div class='subclass '><strong>Ext.data.XmlStore</strong></div></div></div><h4>Files</h4><div class='dependency'><a href='source/XmlStore.html#Ext-data-XmlStore' target='_blank'>XmlStore.js</a></div></pre><div class='doc-contents'><p>Small helper class to make creating <a href=\"#!/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Ext.data.Store</a>s from XML data easier.\nA XmlStore will be automatically configured with a <a href=\"#!/api/Ext.data.XmlReader\" rel=\"Ext.data.XmlReader\" class=\"docClass\">Ext.data.XmlReader</a>.</p>\n\n\n<p>A store configuration would be something like:\n<pre><code>var store = new <a href=\"#!/api/Ext.data.XmlStore\" rel=\"Ext.data.XmlStore\" class=\"docClass\">Ext.data.XmlStore</a>({\n // store configs\n autoDestroy: true,\n storeId: 'myStore',\n url: 'sheldon.xml', // automatically configures a HttpProxy\n // reader configs\n record: 'Item', // records will have an \"Item\" tag\n idPath: 'ASIN',\n totalRecords: '@TotalResults'\n fields: [\n // set up the fields mapping into the xml doc\n // The first needs mapping, the others are very basic\n {name: 'Author', mapping: 'ItemAttributes > Author'},\n 'Title', 'Manufacturer', 'ProductGroup'\n ]\n});\n</code></pre></p>\n\n\n<p>This store is configured to consume a returned object of the form:\n<pre><code><?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ItemSearchResponse xmlns=\"http://webservices.amazon.com/AWSECommerceService/2009-05-15\">\n <Items>\n <Request>\n <IsValid>True</IsValid>\n <ItemSearchRequest>\n <Author>Sidney Sheldon</Author>\n <SearchIndex>Books</SearchIndex>\n </ItemSearchRequest>\n </Request>\n <TotalResults>203</TotalResults>\n <TotalPages>21</TotalPages>\n <Item>\n <ASIN>0446355453</ASIN>\n <DetailPageURL>\n http://www.amazon.com/\n </DetailPageURL>\n <ItemAttributes>\n <Author>Sidney Sheldon</Author>\n <Manufacturer>Warner Books</Manufacturer>\n <ProductGroup>Book</ProductGroup>\n <Title>Master of the Game</Title>\n </ItemAttributes>\n </Item>\n </Items>\n</ItemSearchResponse>\n</code></pre>\nAn object literal of this form could also be used as the <a href=\"#!/api/Ext.data.XmlStore-cfg-data\" rel=\"Ext.data.XmlStore-cfg-data\" class=\"docClass\">data</a> config option.</p>\n\n\n<p><b>Note:</b> Although not listed here, this class accepts all of the configuration options of \n<b><a href=\"#!/api/Ext.data.XmlReader\" rel=\"Ext.data.XmlReader\" class=\"docClass\">XmlReader</a></b>.</p>\n\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-autoDestroy' class='member first-child inherited'><a href='#' class='side expandable'><span> </span></a><div class='title'><div class='meta'><a href='#!/api/Ext.data.Store' rel='Ext.data.Store' class='defined-in docClass'>Ext.data.Store</a><br/><a href='source/Store.html#Ext-data-Store-cfg-autoDestroy' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.data.Store-cfg-autoDestroy' class='name expandable'>autoDestroy</a><span> : Boolean</span></div><div class='description'><div class='short'>true to destroy the store when the com
|