1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    53
    Vote Rating
    0
    Mic1 is on a distinguished road

      0  

    Default reading xml <lay id="2" orientation="h" name="View2" description="2 Views 1*2">

    reading xml <lay id="2" orientation="h" name="View2" description="2 Views 1*2">


    I am reading into grids the standard

    <ItemSearchRequest>
    <Author>Sidney Sheldon</Author>
    <SearchIndex>Books</SearchIndex>
    </ItemSearchRequest>

    but have large xml files in the format

    <lay id="3" orientation="h" name="View2a" description="2 Views 1*2">
    <box id="1" orientation="v">
    <pane id="1" />
    <pane id="2" />
    </box>
    <box id="2" orientation="v">
    <pane id="3" />
    <pane id="4" />
    </box>
    </lay>

    .... found an article that says this kinda xml is a pain and that multiple associated models have to be created to handle it. Would I be better off converting all my xml into 'standard' format? tia,

    Mic.

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,154
    Vote Rating
    475
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    If you have the choice, can you convert to JSON? That would be much better.

    Scott.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    53
    Vote Rating
    0
    Mic1 is on a distinguished road

      0  

    Default


    sure, the format is up to me ..... is JSON ok at handling the hierarchical parent node/child node stuff that xml is so good at? tia

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,154
    Vote Rating
    475
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    We have several examples that use nested JSON (tree, etc)

    Scott.

  5. #5
    Sencha User
    Join Date
    Apr 2012
    Posts
    53
    Vote Rating
    0
    Mic1 is on a distinguished road

      0  

    Default


    excellent - thanks for the info. (desperate for an answer on my Architect question : "Architect: Ext.tree.Panel.Config.tpl format?" :-( can you help? :-) )


  6. #6
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,154
    Vote Rating
    475
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    desperate for an answer on my Architect question : "Architect:
    Replied, but your question was a bit vague.

    Scott.

Thread Participants: 1