The XML module of the DataType Utility allows you to take a string and convert it to an XML document.

{{>datatype-xmlparse-source}}

To convert a string to an XML document, simply call the parse() function of the Y.XML class:

``` YUI().use("datatype-xml", function(Y) { var output = Y.XML.parse("..."); // output is an XML document }); ```

Full example source:

``` {{>datatype-xmlparse-source}} ```