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

Config Options

Config OptionsDefined By