I've got a few examples of how to go about using this sort of
implementation with SimpleXMLDecoder along with recursive
ObjectTranslator calls, tied into HTTPService calls using xmlDecode  =]

http://booleanbetrayal.com/2007/05/18/httpservice-xmldecode-objecttranslator-and-rabidsquirrels/

Hope this helps ... I've done this a few times with various
serialization strategies, including JSON, too. 


--- In [email protected], "lytvynyuk" <[EMAIL PROTECTED]> wrote:
>
> Thank you Troy, for your suggestions.
> 
> I cannot understand one thing, using SimpleXMLDecoder i got Object
> from XML BUT I cannot make this ObjectProxy cast to my Album Object.
> What is the condition to cast object.... fields are same, I cant
> understand how does it works :( 
> 
> --- In [email protected], "Troy Gilbert" <troy.gilbert@>
> wrote:
> >
> > > Does anybody have good examples how SimpleXMLDecoder works ?
> > 
> > I've never found a good one. Senocular has a library called
> > XMLDefinition (google it). I've not looked at it too much, but it
> > superficially appears to do what you're looking for.
> > 
> > I don't like the idea of passing the XML into the object for it to
> > self-populate (or its counterpart spitting out a piece of XML for
> > serialization). In my mind, serialization (which is what this is) is a
> > related but independent class from the model itself. Of course, that's
> > not a weird suggestion... its how Java implements serialization and
> > how AS3 does it generically as well. Though frustratingly these
> > dynamic languages don't provide general purpose API for doing it with
> > strong typing.
> > 
> > Come on, Adobe, XML is the lingua franca of the web (if not of
> > business software) and its a native type in AS3. There should be
> > trivial, native serialization of objects with strong types to and from
> > XML (in the same way that there is for the, ahem, proprietary AMF
> > format).
> > 
> > Troy.
> >
>


Reply via email to