SyntaxFix
Write A Post
Hire A Developer
Questions
Simply use
var xmlString = '<?xml version="1.0" ?><root />'; var xml = jQuery.parseXML(xml);
It's jQuery.parseXML, so no need to worry about cross-browser tricks. Use jQuery as like HTML, it's using the native XML engine.