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
    4
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi