Javatpoint Logo
Javatpoint Logo

jQuery parseXML() method

The 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.


This 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.


It 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 Now


After the successful execution of the above code, the output will be -

jQuery parseXML() method

After clicking the given button, the output will be -

jQuery parseXML() method

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA