Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I generate actionscript classes from XSD for XML serialization/deserialization?

I've been looking at various questions in StackOverflow and in other sites, but I have not seen a library that a) generates actionscript code given XSD b) serializes to and deserializes from XML using the generated classes.

In Java world this is JAXB. I have a set of large XSDs, based on which a web service is producing XML output. I don't want to write actionscript classes by hand, that'd be huge piece of work.

Having source code in actionscript would help a lot, since writing code based on runtime binding of xml/json to objects is much more error prone compared to having proxy like classes. Any ideas?

update: I've found a wizard in Adobe's Flash Builder for doing what I've been looking for, but unfortunately, it died on me complaining about case sensitivity of entities and services names etc. So a 3rd party framework which can do this is still required.

like image 494
mahonya Avatar asked Feb 18 '26 09:02

mahonya


1 Answers

You can try out asaxb. It allows you to unmarshall XML into ActionScript objects based on metadata. It is at least part of the solution.

like image 110
Eamonn Faherty Avatar answered Feb 19 '26 21:02

Eamonn Faherty



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!