1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    4
    Vote Rating
    1
    Barr is on a distinguished road

      0  

    Default Answered: Configure reader.Xml to read custom format

    Answered: Configure reader.Xml to read custom format


    So the native reader.Xml can handle xml with this format:

    Code:
    <users>
        <user>
            <id>1</id>
            <name>Ed Spencer</name>
            <email>ed@sencha.com</email>
        </user>
        <user>
            <id>2</id>
            <name>Abe Elias</name>
            <email>abe@sencha.com</email>
        </user>
    </users>
    But my framework uses xml like this:

    Code:
    <users>
        <user id="1" name="Ed Spancer" email="ed@sencha.com"/>
        <user id="2" name="Abe Elias" email="abe@sencha.com"/>
    </users>
    How would you go about solving this?

    Kind Regards,
    Barr

  2. I don't think you need to do anything special with the reader but you'll need to specify mappings on your fields:

    http://docs.sencha.com/ext-js/4-0/#!...ld-cfg-mapping

    Use @ before an attribute name.

    If you can't get it to work then please post the code for your reader and field definitions.

  3. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,588
    Answers
    540
    Vote Rating
    322
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    I don't think you need to do anything special with the reader but you'll need to specify mappings on your fields:

    http://docs.sencha.com/ext-js/4-0/#!...ld-cfg-mapping

    Use @ before an attribute name.

    If you can't get it to work then please post the code for your reader and field definitions.

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