Any client js libraries for turning XML into a JavaScript object? I'm specifically working with RSS and ATOM XML.
I don't want to go from XML to JSON then eval().
I'd like to go from XML directly to JavaScript hashes/arrays.
Any client js libraries for turning XML into a JavaScript object? I'm specifically working with RSS and ATOM XML.
I don't want to go from XML to JSON then eval().
I'd like to go from XML directly to JavaScript hashes/arrays.
Try adobe's spry framework.
http://labs.adobe.com/technologies/spry/
they have a dataset object that does exactly this.
http://labs.adobe.com/technologies/spry/samples/
Lots of examples on how they turn xml into javascript datasets.
http://labs.adobe.com/technologies/spry/samples/data%5Fregion/XMLDataSetStringHandlingSample.html
Have you looked at the Google AJAX Feed API?
I use it all the time and you don't need to register for am API key anymore
You can use Yahoo Pipes if the source of the XML is an online feed somewhere. This will gice you a JSON object that you can access like e.g. data[x].propertyName
Using eval() isn't madatory for processing JSON ;)