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
|
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week