1 Reply Latest reply on Feb 14, 2007 8:42 PM by BKBK

    Relatively Simple XML question

    miki Level 1
      Can i change referencing method half way through a call?

      I want to loop through ALL children of the node 'section_text' described in XML below. I have already looped on "section". Can i refer to it as "parsed_data....section[x].section_text.xmlChildren"? in my cfloop?

        • 1. Re: Relatively Simple XML question
          BKBK Adobe Community Professional & MVP
          Assuming parsed_data is the name of the parsed XML object, then you can obtain the children of the node Section_Text as the array elements

          parsed_data...["Section"]["Section_Text"].XmlChildren[1], parsed_data...["Section"]["Section_Text"].XmlChildren[2], and so on

          I have used the associative-array or bracket notation to avoid errors due to case-sensitivity.