The xmlDOM jQuery plugin takes a string of XML and converts it into an XML DOM object for use with jQuery.
jQuery Plugin Methods
The xmlDOM plugin adds the following jQuery method:
- $.xmlDOM()
Example
Here's an example of how it works
var xml = '<item><title>Hello world!</title></item>'; $.xmlDOM( xml ) .find('item > title') .each(function() { // Alert's 'Hello world!' alert( $(this).text() ); });
插件下载 xmldom-1.0.zip