A question about Jquery Ajax

A question about Jquery Ajax

When I call Jquery ajax, I get xmldata back and I can have code like 

jQuery("#tabclasslabs")[0].addXmlData(xmldata.responseXML)

If I have a xml text string, how can I parse it so it returns same format as the "xmldata.responseXML"?

Thanks