Thanks. Is there a 'quick and dirty' way to convert to array
collection if you know the names of the attributes, etc.

--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Sure, but you have to do it manually.  Loop over the nodes, then use the
> attributes() to loop over the attributes.  If I recall correctly,
> attribute[n] will give you the attr value, and attribute[n].name() will
> give you the attr name. XML.name() (or localName()) will give you the
> name of the node.
> 
>  
> 
> Tracy
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of sdl1326
> Sent: Thursday, August 21, 2008 5:56 PM
> To: [email protected]
> Subject: [flexcoders] XMLList to ArrayCollection
> 
>  
> 
> I am retrieving the following xml via httpsService with the result
> format being 'e4x'. 
> 
>       <projects>
>           <project date="08/01/08" description="Development" hours="4"
> user="AA">Q3</project>
>           <project date="08/01/08" description="Development" hours="3"
> user="AA">Q4</project>
>           <project date="08/04/08" description="Development" hours="4"
> user="AA">Q3</project>
>           <project date="08/04/08" description="Development" hours="3"
> user="BB">Q4</project>
>           <project date="08/05/08" description="Refinement"  hours="6"
> user="BB">Q3</project>
>           <project date="08/06/08" description="Refinement"  hours="3"
> user="CC">Q3</project>
>           <project date="08/07/08" description="Development" hours="2"
> user="CC">Q3</project>
>           <project date="08/08/08" description="Development" hours="2"
> user="CC">Q3</project>
>       </projects>    
> 
> What's the best way to convert an XMLList to an ArrayCollection?  Is it
> possible to do so without knowing the names of the attributes?
> 
> Thanks for the assistance.
>


Reply via email to