views:

50

answers:

1

Im trying to create a 'tree' using and xml source with dashcode for a webapp.

My record set (as an example) is similar to a Used Car Lot:

*where I have 100 cars *I have multiple of the same kinds of cars, but still varying makes and models

What I'd like to do is have a stacklayout/dataArrays with a a table handle something like

*Ford
*Nissan
*Toyota
*Kia

then the user taps one and gets the drill down of the models like

*****Toyota*****<-navigation bar
Prius
Yaris
Rav 4
Camry
Corolla

Then the next screen would have the details of different cars like a list of all the Corollas available.

Then they could tap on one and get details of that specific one like color, airbags, warranty, etc...

I want this to come from one XML file that has a structure like this:

<?xml version="1.0"?>
<allcars>
    <car>
       <id>1</id>
       <vinnumber>1234</vinnumber> 
       <make>Toyota</make>
       <model>Prius</model> 
       <details>JUST LIKE NEW!</details> 
    </car> 

    <car>
       <id>1</id>
       <vinnumber>4567</vinnumber> 
       <make>Toyota</make>
       <model>Corolla</model> 
       <details>IT SMELLS INSIDE!</details> 
    </car> 
</allcars>

Thanks for your help!

A: 

Try an place the <allcars>...</allcars> within <root> and </root>. Then dashcode would be able to phrase the cars correctly into a hierarchy able to drill down into.

jcb344