appcelerator/alloy — pull request #83 by davidecassenti (2012-11-05 18:18:13+00:00)
Title: Added XML builtins

The only function available now is toJSON() to convert an XML doc to a JSON object.

Test case:

~~~
var json = xml.toJSON("RufuslabradorMartywhippet");

Ti.API.info("JSON: " + JSON.stringify(json));
~~~

Result would be the JSON formatted XML document:

{"animals":{"dog":[{"name":"Rufus","breed":"labrador"},{"name":"Marty","breed":"whippet"}],"cat":{"name":"Matilda"}}}