Convert a String of XML to a DOM Object with jQuery

638 단어 jqueryxml
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

    좋은 웹페이지 즐겨찾기