code: function parseXML(xml) {
  		if ( window.DOMParser == undefined && window.ActiveXObject ) {
  			DOMParser = function() { };
  			DOMParser.prototype.parseFromString = function( xmlString ) {
  				var doc = new ActiveXObject('Microsoft.XMLDOM');
  				doc.async = 'false';
  				doc.loadXML( xmlString );
  				return doc;
  			};
  		}
  
  		try {
  			var xmlDoc = ( new DOMParser() ).parseFromString( xml, 'text/xml' );
  			if ( $.isXMLDoc( xmlDoc ) ) {
  				var err = $('parsererror', xmlDoc);
  				if ( err.length == 1 ) {
  					throw new Error('Error: ' + $(xmlDoc).text() );
  				}
  			} else {
  				throw new Error('Unable to parse XML');
  			}
  			return xmlDoc;
  		} catch( e ) {
  			var msg = ( e.name == undefined ? e : e.name + ': ' + e.message );
  			$(document).trigger('xmlParseError', [ msg ]);
  			return undefined;
  		}
  	}
docs: Parse the given XML string.