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.

20 lines
184 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. This file is part of Ext JS 3.4
  3. Copyright (c) 2011-2013 Sencha Inc
  4. Contact: http://www.sencha.com/contact
  5. GNU General Public License Usage
  6. This file may be used under the terms of the GNU General Public License version 3.0 as
  7. published by the Free Software Foundation and appearing in the file LICENSE included in the
  8. packaging of this file.
  9. Please review the following information to ensure the GNU General Public License version 3.0
  10. requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  11. If you are unsure which license is appropriate for your use, please contact the sales department
  12. at http://www.sencha.com/contact.
  13. Build date: 2013-04-03 15:07:25
  14. */
  15. 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>&#60?xml version=\"1.0\" encoding=\"UTF-8\"?>\n&#60ItemSearchResponse xmlns=\"http://webservices.amazon.com/AWSECommerceService/2009-05-15\">\n &#60Items>\n &#60Request>\n &#60IsValid>True&#60/IsValid>\n &#60ItemSearchRequest>\n &#60Author>Sidney Sheldon&#60/Author>\n &#60SearchIndex>Books&#60/SearchIndex>\n &#60/ItemSearchRequest>\n &#60/Request>\n &#60TotalResults>203&#60/TotalResults>\n &#60TotalPages>21&#60/TotalPages>\n &#60Item>\n &#60ASIN>0446355453&#60/ASIN>\n &#60DetailPageURL>\n http://www.amazon.com/\n &#60/DetailPageURL>\n &#60ItemAttributes>\n &#60Author>Sidney Sheldon&#60/Author>\n &#60Manufacturer>Warner Books&#60/Manufacturer>\n &#60ProductGroup>Book&#60/ProductGroup>\n &#60Title>Master of the Game&#60/Title>\n &#60/ItemAttributes>\n &#60/Item>\n &#60/Items>\n&#60/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>&nbsp;</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