looking at your structure, i am assuming of course that you would not have a sub element of dog in an element of dog, so two dots should work fine.

Anthony Pace wrote:
use two dots; yet, IMHO that is poorly structured data.

If you have any say to how the data should be formatted, how about using:

<pets>
   <pet type="dog" name="rover"/>
   <pet type="cat" name="felix" />     <pet type="bunny" name="thumper"/>
   <pet type="snake" name="charlie" etc="etc.." />
   <!-- etc  -->
</pets>

or if each absolutely must have large child elements, why not:
<pets>
   <pet>
       <type>dog</type>
       <nom>rover</nom>
       <etc>you get the point?</etc>
   </pet>
   <pet>
       <type>cat</type>
       <nom>felix</nom>
       <etc>but this increases bandwidth usage</etc>
   </pet>
</pets>

Later,
Anthony


Mendelsohn, Michael wrote:
Thanks for replying Jason. I'd do that, but I'm also trying to preserve the order in which things occur, like given this xml...
<pets>
    <dog/>
    <cat/>
    <snake/>
    <dog/>
    <dog/>
    <ant/>
    <bird/>
    <dog/>
</pets>

...then, I'd traverse the resulting XMLList, and using a switch statement, render things a certain way on the stage, but keeping the order. So, in other words, only the dog and bird tags should render, and in order that they occur.

- Michael M.




Have you tried:

myXMLListDogs:XMLList = pets..dog
myXMLListBirds:XMLList = pets..bird


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to