samedi 9 mai 2015

How would you implement better serilization/deserialization in Haxe?

The server I use at work (out of my control) always uses XML in the responses/requests.

Haxe has pretty good Json support but not really for XML. You have to traverse the xml elements and it's not all that efficient. I'm trying to make my life easier because the client's service always uses XML.

I'd love to be able to take in XML and output an object easily like in Java.

The trouble is, I have no clue how I would even go about this.

Is it worth going down this road? I suppose I could take a look at the Java one and try to re-implement it in Haxe?

Would embedding an external one be a better option? Any suggestions?

Has anyone had experience with this library: http://ift.tt/1Qw1TOh

Or would just extending the already-implemented parts of the library be the most practical thing to do: http://ift.tt/1Qw1UBP

Aucun commentaire:

Enregistrer un commentaire