1 Reply Latest reply on Dec 4, 2008 10:27 AM by rtalton

    Strip off markups of generic XML data with E4X

    JZBAO Level 1
      I have a generic XML file:

      <nodes>
      <node1 att1='abc' att2='xyz'>
      <ele1> Hello </ele1>
      <ele2> Hi </ele2>
      ...
      </node1>
      ....
      </nodes>

      The tag and attribute names above can be anything. I need a generic method to strip off the XML markups and display the contents as:

      node1@att1: abc
      node1@att2: xyz
      node1.ele1: Hello
      node1.ele2: Hi
      ....

      How can E4X do this?