Post by Aron / October 6th, 2009

XML to VO – as easy as apple pie!? (demo included)

xml to vo debug dialog

I’m currently working with SOAP web services. While making adjustments to the classes of the wsdl Flex Builder class generator I discovered, that there is an easy way to decode / parse XML to VOs (value objects). The XMLDecoder inside the rpc package does the trick. I’m still confused why there are not more resources on the web regarding this topic but If you want to digg deeper, I strongly recommend reading these blog posts by Dominic De Lorenzo:

Flex 3, XML Schemas & automatic mapping of AS classes to XSD element definitions (Part 1)
Flex 3, XML Schemas & automatic mapping of AS classes to XSD element definitions (Part 2)

I’m not an XML pro and some things in his example I’m still not getting (namespaces in XML, yes well…). Also, his example is in Flex and I just wanted to have a basic example on how this could be useful for my work.

Read on ›

Post by Aron / August 25th, 2009

Having fun with ActionScript3, E4X and XPath

I admit, I was still a bit wet behind the ears when it came to working with XML in AS3 – never did more then getting some images for a slideshow or loading some config-stuff out of a tiny 6-lines XML document. I thought, working with XML in Flash is still some myXML.firstChild.firstChild.firstChild.nodeValue bulls**t.

For a recent project, I had the chance to actually dive into this E4X magic and do the tricks. And yes, although I would still prefer using everything as serialized AMF, working with XML in Flash makes sense … now. And it’s definitely fun.

Read on ›