X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..76cb34406ceaf9681a76e13b531d7eafa483ad88:/docs/output/Ext.data.XmlReader.html?ds=sidebyside diff --git a/docs/output/Ext.data.XmlReader.html b/docs/output/Ext.data.XmlReader.html index f4330917..27b44e62 100644 --- a/docs/output/Ext.data.XmlReader.html +++ b/docs/output/Ext.data.XmlReader.html @@ -1,32 +1,10 @@ -
-
- Properties - Methods - Events - Config Options - Direct Link -
-
-
DataReader
-  XmlReader
-

Class Ext.data.XmlReader

- - - - - -
Package:Ext.data
Defined In:XmlReader.js
Class:XmlReader
Extends:DataReader
-
- * -Data reader class to create an Array of Ext.data.Record objects from an XML document -based on mappings in a provided Ext.data.Record constructor.

-

-Note that in order for the browser to parse a returned XML document, the Content-Type -header in the HTTP response must be set to "text/xml" or "application/xml". -

-Example code: -

var Employee = Ext.data.Record.create([
-   {name: 'name', mapping: 'name'},     // "mapping" property not needed if it's the same as "name"
+
DataReader
  XmlReader

Class Ext.data.XmlReader

Package:Ext.data
Defined In:XmlReader.js
Class:XmlReader
Extends:DataReader

Data reader class to create an Array of Ext.data.Record objects from an XML document +based on mappings in a provided Ext.data.Record constructor.

+

Note: that in order for the browser to parse a returned XML document, the Content-Type +header in the HTTP response must be set to "text/xml" or "application/xml".

+

Example code:

+
var Employee = Ext.data.Record.create([
+   {name: 'name', mapping: 'name'},     // "mapping" property not needed if it is the same as "name"
    {name: 'occupation'}                 // This field will use "occupation" as the mapping.
 ]);
 var myReader = new Ext.data.XmlReader({
@@ -49,153 +27,37 @@ This would consume an XML file like this:
    <name>Ben</name>
    <occupation>Horticulturalist</occupation>
  </row>
-</dataset>
- -
- -

Config Options

- - - - - - - - - - - - - - - - - - - - - - - - - -
Config OptionsDefined By
  - - id : String
- The DomQuery path relative from the record element to the element that contains a record identifier value.
-
XmlReader
  - - record : String
- The DomQuery path to the repeated element which contains record information.
-
XmlReader
  - - success : String
- The DomQuery path to the success attribute used by forms.
-
XmlReader
- -

Public Properties

- - - - - - - - - - - - - - - -
PropertyDefined By
  - - meta : Mixed
- This DataReader's configured metadata as passed to the constructor.
-
DataReader
  - - xmlData : XMLDocument
- After any data loads/reads, the raw XML Document is available for further custom processing.
-
XmlReader
- -

Public Methods

- - - - - - - - - - - - - - - - - - - - -
MethodDefined By
- -

Public Events

-
This class has no public events.
-
\ No newline at end of file +</dataset>

Config Options

Config OptionsDefined By
 idPath : String
The DomQuery path relative from the record element to the element that contains +a record identifier value.
XmlReader
 record : String
The DomQuery path to the repeated element which contains record information.
XmlReader
 success : String
The DomQuery path to the success attribute used by forms.
XmlReader

Public Properties

PropertyDefined By
 buildExtractors : Object
Abstract method, overridden in Ext.data.JsonReader
DataReader
 meta : Mixed
This DataReader's configured metadata as passed to the constructor.
DataReader
 xmlData : XMLDocument
After any data loads/reads, the raw XML Document is available for further custom processing.
XmlReader

Public Methods

MethodDefined By

Public Events

This class has no public events.
\ No newline at end of file