title: Extjs: Save data in grid or store in a local file system in xml format
body: <p>I am trying to export my data in grid or store to a xml file and save it in a file system. Please find the code of a simple grid I am using.</p>
  
  <pre><code>Ext.define('User', {
      extend: 'Ext.data.Model',
      fields: [ 'name', 'email', 'phone' ]
  });
  
  
  var userStore = Ext.create('Ext.data.Store', {
      model: 'User',
      data: [
          { name: 'Lisa', email: 'lisa@simpsons.com', phone: '555-111-1224' },
          { name: 'Bart', email: 'bart@simpsons.com', phone: '555-222-1234' },
          { name: 'Homer', email: 'home@simpsons.com', phone: '555-222-1244' },
          { name: 'Marge', email: 'marge@simpsons.com', phone: '555-222-1254' }
      ]
  });
  
  
  
  Ext.create('Ext.grid.Panel', {
      renderTo: Ext.getBody(),
      store: userStore,
      width: 400,
      height: 200,
      title: 'Application Users',
      columns: [
          {
              text: 'Name',
              width: 100,
              sortable: false,
              hideable: false,
              dataIndex: 'name'
          },
          {
              text: 'Email Address',
              width: 150,
              dataIndex: 'email',
              hidden: true
          },
          {
              text: 'Phone Number',
              flex: 1,
              dataIndex: 'phone'
          }
      ]
  });
  </code></pre>