A jQuery plugin that deserializes XML?

Is there an XML descriptor for javascript? Preferably in the form of a jQuery plugin.

+4
source share
1 answer

You can manipulate XML with Javascript just like a DOM .

To do this with jQuery, you can just pass your XML to the jQuery and voila function, it is ready ...

var dat = '<xml><test foo="bar">Cool!</test></xml>'; var xml = $(dat); alert(xml.find("test").text()); // shows "Cool!" alert(xml.find("test").attr("foo")); // shows "bar" 
+7
source

All Articles