1. #1
    Ext Premium Member
    Join Date
    Jun 2007
    Posts
    35
    Vote Rating
    0
    chernomorez is on a distinguished road

      0  

    Default How to get all nodes from XmlReader?

    How to get all nodes from XmlReader?


    I have a page which is accessing a service returning the XML, and I want to iterate through all the XML nodes without calling them individually in config of XmlReader.

    For example, if my XML record is this:
    Code:
    <ds>
      <firstName>Joe</firstName>
      <lastName>Smith</lastName>
      <userID>123</userID>
      <address>123 A Street</address>
      ...
    </ds>...
    and this is my data reader creation
    Code:
    var myReader = new Ext.data.XmlReader({
    		        totalRecords:'TotalCount',
                   record: 'ds',
                   id: 'userID'
               }, [
                   'userID','firstName', 'lastName'
        ]));


    How can I avoid listing all the properties, and get all of them at once?

    Thanks

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    2
    tryanDLS is on a distinguished road

      0  

    Default


    There's a thread in Examples (maybe moved to User Extensions) that shows how to dynamically build the colModel on the fly. It may be JSON-based, but you should be able to adapt it to XML.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar