I am sorry but I do not understand your goal.  If someone smarter than me replies, ignore this but if not:

 

First, are you sure you need to do this?  It is what e4x is designed to do.

 

If you are sure, exactly what do you mean by “self defined client class”? Are you trying to dynamically create an object that has a “child” method that will return an XML node?  Are you trying to turn the XML into an mx:Object?  Do you just need an associative array of nodes?

 

Give us a little more info.

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of junhufr
Sent: Thursday, July 27, 2006 6:47 PM
To: [email protected]
Subject: [flexcoders] Re: Flex 2: how to convert a remote XML file to a self defined object

 

Sorry for the mistake, actually, I couldn't retrive the "companyA"
child by using .child("companyA") method.

--- In [EMAIL PROTECTED]ups.com, "junhufr" <[EMAIL PROTECTED]> wrote:
>
> I've tried to convert a remote XML such as "client.xml" to a self
> defined client class, but failed.
>
> <clientList>
> <companyA>
> <client>
> <name>Tom</name>
> </client>
> <client>
> <name>Jerry</name>
> </client>
> </companyA>
>
> <companyB>
> <client>
> <name>Jean</name>
> </client>
> <client>
> <name>Philip</name>
> </client>
> </companyB>
> </clientList>
> 1. I invoked the XML from HTTPService
> 2. Then I could get the child "companyA" from the object that i
> invoked for HTTPService by using .child("companyA") method.
>
>
> Any helps will be appreicated.
>
> Jun
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to