JQuery | parseXML() Method Last Updated : 30 Apr, 2020 Comments Improve Suggest changes Like Article Like Report This parseXML() Method in jQuery is used to parse a string into an XML document. Syntax: jQuery.parseXML( data ) Parameters: This method accept single parameter which is mentioned above and described below: data: This parameter holds the well-formed XML string to be parsedd. Return Value: It returns the XML document. Below exa,ples illustrate the parseXML() method in jQuery: Example 1: In this example, the parseXML() method parses a string into an XML document. html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JQuery | parseXML() method</title> <script src= "https://code.jquery.com/jquery-3.4.1.js"> </script> <style> #a { color: blue; } #b { color: red; } </style> </head> <body style="text-align:center;"> <h1 style="color: green"> GeeksforGeeks </h1> <h3>JQuery | parseXML() method</h3> <p id="a"></p> <p id="b"></p> <script> var xml = "<rss version='2.0'>"+ "<channel>"+ "<body>String : parseXML</body>"+ "</channel>"+ "</rss>", xmlDoc = $.parseXML(xml), $xml = $(xmlDoc), $body = $xml.find("body"); $("#a").append($body.text()); $body.text("XMLDocument : parseXML"); $("#b").append($body.text()); </script> </body> </html> Output: Example 2: . html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JQuery | parseXML() method</title> <script src= "https://code.jquery.com/jquery-3.4.1.js"> </script> <style> #a { color: blue; } #b { color: red; } </style> </head> <body style="text-align:center;"> <h1 style="color: green"> GeeksforGeeks </h1> <h3>JQuery | parseXML() method</h3> <p id="a"></p> <p id="b"></p> <script> var xml = "<rss version='2.0'>"+ "<channel>"+ "<body style='text-align:center;'>"+ "<h1 style='color: green'>GeeksForGeeks</h1>"+ "<h3>JQuery | parseXML() method</h3>"+ "</body>"+ "</channel>"+ "</rss>", xmlDoc = $.parseXML(xml), $xml = $(xmlDoc), $val = $xml.find("h3"); $val.text("Parses a string into an XML document."); $("#a").append($val.text()); </script> </body> </html> Output: Comment More infoAdvertise with us Next Article JQuery | parseXML() Method S SHUBHAMSINGH10 Follow Improve Article Tags : Web Technologies JQuery Write From Home jQuery-Methods Similar Reads JQuery | parseHTML() method This parseHTML() Method in jQuery is used to parses a string into an array of DOM nodes. Syntax: jQuery.parseHTML(data [, context ] [, keepScripts ]) Parameters: The parseXML() method accepts three parameter that is mentioned above and described below: data: This parameter is the HTML string to be p 2 min read JQuery | parseJSON() method This parseJSON() method in jQuery takes a well-formed JSON string and returns the resulting JavaScript value. Syntax: jQuery.parseJSON( json )Parameters: The parseXML() method accepts only one parameter that is mentioned above and described below: json: This parameter is the well-formed JSON string 2 min read jQuery | get() Method In jQuery .get() method loads data from the server by using the GET HTTP request. This method returns XMLHttpRequest object. Syntax $.get( url, [data], [callback], [type] ) Parameters url : String containing the URL at which request is to be sent data : This is an optional parameter that represents 2 min read JQuery | isXMLDoc() Method This isXMLDoc() Method in jQuery is used to check to see if a DOM node is within an XML document. Syntax: jQuery.isXMLDoc( node ) Parameters: This method accept a single parameter which is mentioned above and described below: node: This parameter holds the DOM node that will be checked to see if it' 1 min read PHP | xml_parse() Function The xml_parse() function is an inbuilt function in PHP which is used to parse XML document. Syntax:Â int xml_parse( resource $xml_parser, string $xml_data, bool $is_final ) Parameter: This function accepts three parameters as mentioned above and described below:Â Â $xml_parser: It is required paramet 3 min read Like