parseXml
Converts an xml-text into a JSON-object.
How to use
script:
var o = $jsapi.parseXml("<test><a>1</a><a>2</a></test>");
log(o);
The log will contain the following object:
{"test":{"a":[1,2]}}
Converts an xml-text into a JSON-object.
script:
var o = $jsapi.parseXml("<test><a>1</a><a>2</a></test>");
log(o);
The log will contain the following object:
{"test":{"a":[1,2]}}