Direct binding and dataprovider support for XML and XMLList would be ideal! With E4X that would incredibly awesome!
Thanks for the update and explanations. It is greatly appreciated! -Adam --- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > The XMLEncoder class is used by HTTPService but it will only do some > generic serialization and deserialization, it does not have generic > schema support (only WSDL schema support). We tried to put schema > support for the non-webservice case in at one point but ran out of time > (and there hasn't been a huge push for it in 2.0). So if you want some > basic serialization support our class will do it for you, no need for > the xmlEncoder function. But if you have a schema you want to follow > you'll need to do it yourself. > > If you want the binding and dataprovider support you'll need to wait for > the next beta (hopefully in the next less-than 10 weeks no promises) > where we've really gotten that code back up-to-snuff. > > Matt > > -----Original Message----- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of alpharythms > Sent: Tuesday, December 27, 2005 4:36 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: [Flex 2.0] XMLEncoder > > Thanks Matt, > > That makes sense, basically you are just telling the HTTPService to > use "myXmlConvert" function to convert the object into XML. I thought > HTTPService might have had a built in way of doing this conversion. > > I understand I can write my own code to do this but I would rather > learn how the API's work if it is possible to do it that way. > > Currently I'm working directly with the XML data (instead of > converting it into an object first) so I can pull it out back out again. > http://www.evilfree.com/adam/blog/2005/12/flex_example_editing_xml_save. > html > > But I'm losing some of the automatic binding that is possible and > having to manually create arrays to use as dataproviders. This will > only get more tedious as I start doing more advanced data manipulation. > > There is an XMLEncoder class that says: > ------- > Take ActionScript Objects and encode them to XML. If schema metadata > is available, use it, otherwise use default serialization. Supports > SOAP encoded arrays. > ------- > > The use of a schema metadata is particularly interesting to me if that > allows you to customize the exact formatting that XML will be in after > it is converted from a generic object. > > I've yet to actually use a schema with XML in general and with Flex > 2.0 being an alpha I don't even know if this class works as > documented. I was hoping to see some source code or hear from people > that this class work correctly. I would hate to spend hours and > hours trying to determine if I'm doing something incorrectly or if > it's a bug (or unimplemented) in Flex. > > Thanks Again! > Adam > > > > > > > > > -- > 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 > ------------------------ Yahoo! Groups Sponsor --------------------~--> AIDS in India: A "lurking bomb." Click and help stop AIDS now. http://us.click.yahoo.com/VpTY2A/lzNLAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/