Good evening everyone!

All of the example EXTJs XML/grid examples use the Books, ISBN, ASIN number example. I have some XML that's a little more complex, and I don't know how to map these items to the grid fields. Any advice?

Examples I see:

<Author>Sidney Sheldon</Author>
<Manufacturer>Warner Books</Manufacturer>
<Title>Master of the Game</Title>
maps like:
reader: new{
// records will have an "Item" tag
record: 'Item',
id: 'ASIN',
totalRecords: '@total'
}, [
// set up the fields mapping into the xml doc
// The first needs mapping, the others are very basic
{name: 'Author', mapping: 'ItemAttributes > Author'},
// Detail URL is not part of the column model of the grid
I have something like:
  <floor name="firstfloor" display="First Floor">
    <field_name name="sqfootage" display="100 sq ft"/>
    <field_name name="height" display="9ft"/>
  <floor name="basement" display="Sub Zero Floor">
    <field_name name="sqfootage" display="200 sq ft"/>
    <field_name name="height" display="12ft"/>

That should get me going where I need to go. In Jquery, it's would map like this:
building.find('building") for each building..
then to get the first floor data it would be something like:
floor.find('floor[name="firstfloor"]').find('field_name[name="height"]').text() or somethingl ike that, to get the height of each floor..

how would I accomplish that in an XMLReader, to get a row for each 'building', and an attribute in each row that maps to the 'firstfloor' height attribute... and it has to be by 'value' of the 'name' attribute, not an index.

and I don't know how to map it.