0 Replies Latest reply on Apr 7, 2010 1:21 PM by Jenniration

    Working with the children of an XML element AS

    Jenniration

      Hi All,

       

      I'm working with a nested XML structure. While I know how to iterate through XML using AS I would like to iterate specifically through the children of a particular element. For example:

      I'd like to iterate through the XML until I get to <a> and work on the children within the <a> element, then go to the next <a> and do it again. I know its easier to do in xsl, I have it written for that already but I need this done with an AS script if I can.

       

      <foo>

           <bar>

                <a>

                     <child></child>

                     <child></child>

                     <child></child>

                </a>

                <b>

                     <child></child>

                      <child></child>

                     <child></child>

                </b>

      other a elements other b elements

      etc.....

           </bar>

      </foo>

       

      Hope my example was clear,

      Thank you

       

      Jennifer