X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/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 27b44e62..1d16059b 100644 --- a/docs/output/Ext.data.XmlReader.html +++ b/docs/output/Ext.data.XmlReader.html @@ -1,4 +1,4 @@ -
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 +

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".

@@ -8,9 +8,10 @@ header in the HTTP response must be set to "text/xml" or "application/xml".

{name: 'occupation'} // This field will use "occupation" as the mapping. ]); var myReader = new Ext.data.XmlReader({ - totalRecords: "results", // The element which contains the total dataset size (optional) + totalProperty: "results", // The element which contains the total dataset size (optional) record: "row", // The repeated element which contains row information - id: "id" // The element within the row that provides an ID for the record (optional) + idProperty: "id" // The element within the row that provides an ID for the record (optional) + messageProperty: "msg" // The element within the response that provides a user-feedback message (optional) }, Employee);

This would consume an XML file like this: @@ -32,10 +33,10 @@ will be passed to Ext.data.Record.create, or a Record constructo...

Either an Array of Field definition objects (which will be passed to Ext.data.Record.create, or a Record constructor created from Ext.data.Record.create.

DataReader 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 totalRecords : String
The DomQuery path from which to retrieve the total number of records +a record identifier value.
XmlReader messageProperty : String
[undefined] Optional name of a property within a server-response that represents a user-feedback message.
DataReader record : String
The DomQuery path to the repeated element which contains record information.
XmlReader record : String
The DomQuery path to the repeated element which contains record information.
XmlReader successProperty : String
The DomQuery path to the success attribute used by forms.
XmlReader totalProperty : String
The DomQuery path from which to retrieve the total number of records in the dataset. This is only needed if the whole...
The DomQuery path from which to retrieve the total number of records in the dataset. This is only needed if the whole dataset is not passed in one go, but is being -paged from the remote server.
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 Properties

PropertyDefined By
 buildExtractors : Object
Abstract method, overridden in DataReader extensions such as Ext.data.JsonReader and Ext.data.XmlReader
DataReader
 extractData : Object
Abstract method overridden in DataReader extensions such as Ext.data.JsonReader and Ext.data.XmlReader
DataReader
 extractValues : Object
Abstract method overridden in DataReader extensions such as Ext.data.JsonReader and Ext.data.XmlReader
DataReader
 getId : Object
Abstract method created in extension's buildExtractors impl.
DataReader
 getMessage : Object
Abstract method created in extension's buildExtractors impl.
DataReader
 getRoot : Object
Abstract method created in extension's buildExtractors impl.
DataReader
 getSuccess : Object
Abstract method created in extension's buildExtractors impl.
DataReader
 getTotal : Object
Abstract method created in extension's buildExtractors impl.
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