Sencha Documentation

Super classes

Writer that outputs model data in XML format

Config Options

 
documentRoot : String
The name of the root element of the document. Defaults to 'xmlData'.
The name of the root element of the document. Defaults to 'xmlData'.
 
header : String
A header to use in the XML document (such as setting the encoding or version). Defaults to ''.
A header to use in the XML document (such as setting the encoding or version). Defaults to ''.
 
record : String
The name of the node to use for each record. Defaults to 'record'.
The name of the node to use for each record. Defaults to 'record'.

Methods

 
getRecordData( Object record ) : Object
Formats the data for each record before sending it to the server. This method should be overridden to format the data...
Formats the data for each record before sending it to the server. This method should be overridden to format the data in a way that differs from the default.

Parameters

  • record : Object
    The record that we are writing to the server.

Returns

  • Object   An object literal of name/value keys to be written to the server. By default this method returns the data property on the record.
 
write( Ext.data.Request request ) : Ext.data.Request
Prepares a Proxy's Ext.data.Request object
Prepares a Proxy's Ext.data.Request object

Parameters

  • request : Ext.data.Request
    The request object

Returns

  • Ext.data.Request   The modified request object