1 Reply Latest reply on Sep 13, 2011 3:35 AM by Pooja Kuber

    Accessing XML tag names once converted to Object in itemrenderer


      I recieve a result from PHP in XML form containing tags like <image><filename>test</filename><filepath>testing/test</filepath></image>

      The result is converted to an ArrayCollection and then displayed with an item renderer.

      I want to display the fields in a side panel giving more information but these could have different tags so I want to be able to display them dynamicaly.

      My item renderer calls a method using the 'data' object which displays the information in my side panel.


      I am using a for each loop to display the data which works as expected but in order to display them nicely I want to be able to say what field of information it is displaying.


      Is there a way I can access the tag names so i can display them like 'filename: test'?


      Thanks in advance.