2 Replies Latest reply on Mar 4, 2010 7:32 AM by 1ndivisible

    E4X and Namespaces - How best to handle?

    1ndivisible Level 1



      I need to use E4X to create a list of nodes of a particular type from an xml document returned form a Web Service. The document uses multiple namespaces, so I can't access its content, event nodes which aren't prefixed with a namespace.


      I can get round this problem by using:


      namespace all = "http://www.w3.org/2005/Atom"
      use namespace all;


      in the class which parses out the nodes, however, I want to wrap the nodes in an XMLListCollection and set them as a list's dataProvider, and becuase the node's themselves have namespaces declared, it seems that the list can't access the nodes (which all have a label property) and displays the whole node instead.


      What is the correct way to handle this situation?