src/openseadragon.js
function( string ) {
            if ( window.DOMParser ) {

                $.parseXml = function( string ) {
                    var xmlDoc = null,
                        parser;

                    parser = new DOMParser();
                    xmlDoc = parser.parseFromString( string, "text/xml" );
                    return xmlDoc;
                };

            } else if ( window.ActiveXObject ) {

                $.parseXml = function( string ) {
                    var xmlDoc = null;

                    xmlDoc = new ActiveXObject( "Microsoft.XMLDOM" );
                    xmlDoc.async = false;
                    xmlDoc.loadXML( string );
                    return xmlDoc;
                };

            } else {
                throw new Error( "Browser doesn't support XML DOM." );
            }

            return $.parseXml( string );
        }
function( string ) {
            if ( window.DOMParser ) {

                $.parseXml = function( string ) {
                    var xmlDoc = null,
                        parser;

                    parser = new DOMParser();
                    xmlDoc = parser.parseFromString( string, "text/xml" );
                    return xmlDoc;
                };

            } else if ( window.ActiveXObject ) {

                $.parseXml = function( string ) {
                    var xmlDoc = null;

                    xmlDoc = new ActiveXObject( "Microsoft.XMLDOM" );
                    xmlDoc.async = false;
                    xmlDoc.loadXML( string );
                    return xmlDoc;
                };

            } else {
                throw new Error( "Browser doesn't support XML DOM." );
            }

            return $.parseXml( string );
        }
function ( string ) { if ( window . DOMParser ) { $ . parseXml = function ( string ) { var xmlDoc = null , parser ; parser = new DOMParser ( ) ; xmlDoc = parser . parseFromString ( string , "text/xml" ) ; return xmlDoc ; } ; } else if ( window . ActiveXObject ) { $ . parseXml = function ( string ) { var xmlDoc = null ; xmlDoc = new ActiveXObject ( "Microsoft.XMLDOM" ) ; xmlDoc . async = false ; xmlDoc . loadXML ( string ) ; return xmlDoc ; } ; } else { throw new Error ( "Browser doesn't support XML DOM." ) ; } return $ . parseXml ( string ) ; }
Parses an XML string into a DOM Document.
@function
@param {String} string
@returns {Document}
Parses an XML string into a DOM Document .