Misc Parsexml
# jQuery.parseXML() Method
[jQuery Misc Methods](#)
## Example
Create a jQuery object using an XML string and get the value of the title node.
$(function(){var xml = "RSS Title ", xmlDoc = $.parseXML(xml), $xml = $(xmlDoc), $title = $xml.find("title"); // Append "RSS Title" to #someElement $("#someElement").append( $title.text()); // Change the title to "XML Title" $title.text("XML Title"); // Append "XML Title" to #anotherElement $("#anotherElement").append( $title.text()); })
[Try it Β»](#)
* * *
## Definition and Usage
The $.parseXML() function is used to parse a string into a corresponding XML document.
**Note:** This function will use the browser's built-in parsing function to create a valid XML document, which can be passed into the jQuery() function to create a typical jQuery object, allowing for traversal or other operations.
## Syntax
_$_.parseXML( xmlString )
| Parameter | Description |
| :--- | :--- |
| _xmlString_ | String type. A well-formed string to be parsed into a corresponding XML document. |
* * jQuery Misc Methods](#)
YouTip