Hi,
I have an XML like this:

<root>
        <totalLayers>
                <number>5</number>
        </totalLayers>
        <LayerOne>
                <asset>
                 <name>somename0.bmp</name>
                <width>20</width>
                <height>10</height>
                <xPos>50</xPos>
                <yPos>30</yPos>
                </asset>
                <asset>
                 <name>somename1.bmp</name>
                <width>20</width>
                <height>10</height>
                <xPos>50</xPos>
                <yPos>30</yPos>
                </asset>
        </LayerOne>
        <Layertwo>
                <asset>
                 <name>somename2.bmp</name>
                <width>20</width>
                <height>10</height>
                <xPos>50</xPos>
                <yPos>30</yPos>
                </asset>
        </LayerTwo>
</root>

I want to use XPATH or something similar to create dynamic
arrays/string and store values respectivele like this:

String:
totalLayers = "5";

LayerOne and LayerTwo will be a multidimentional array"

LayerOne[[asset[name,width,height,xpos,ypos]][asset[name,width,height,xpos,ypos]]...]
LayerTwo[[asset[name,width,height,xpos,ypos]][asset[name,width,height,xpos,ypos]]...]
etc...

Any hint or suggestion...?
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to