jQuery parseXML() methodThe parseXML() method in jQuery is used to parse a string into an XML document. It uses native methods of the browser for creating a valid XML document. This valid XML document can be passed to jQuery for creating a jQuery object that can be manipulated or traversed. SyntaxThis method accepts a single parameter which is defined as follows - data: It is of string type. It is an XML string to be parsed. Now, let's understand the working of this method using an illustration. ExampleIt is a simple example of using the parseXML() method. In this example, we are passing a well-formed XML string to the parseXML() method. Test it NowOutput After the successful execution of the above code, the output will be - After clicking the given button, the output will be - Next TopicjQuery :password selector |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India