Actually, I just use a common way to retrive the data from XML file, since the e4x, i found that in the HTTPService, we should add resultFormat="e4x", then the object invoked from HTTPService will be the e4x. After then, I just declare all XML tab names in the FrontController class. Then I got a common way to retrive the data, every time, just change the XML file and the XML tab definitions in the FrontController class. All will be fine.
Any way, thanks for your help. --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > 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] <mailto:flexcoders%40yahoogroups.com> > , "junhufr" <junhufr@> 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 Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

