X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775:/docs/output/Ext.data.XmlReader.html diff --git a/docs/output/Ext.data.XmlReader.html b/docs/output/Ext.data.XmlReader.html index 27b44e62..c5573ea1 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: @@ -27,36 +28,38 @@ This would consume an XML file like this: <name>Ben</name> <occupation>Horticulturalist</occupation> </row> -</dataset>

Config Options

Config OptionsDefined By