More from: jQuery

Пример jQuery.parseXML()

<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery.parseXML demo</title> <script src="https://code.jquery.com/jquery-1.10.2.js"></script> </head> <body>   <p id="someElement"></p> <p id="anotherElement"></p>   <script> var xml = "<rss version=’2.0′><channel><title>RSS Title</title></channel></rss>", xmlDoc = $.parseXML( xml ), $xml = $( xmlDoc ), $title = $xml.find( "title" );   // Append "RSS Title" to #someElement $( "#someElement" ).append( $title.text() );   // […]