Created
August 27, 2010 20:47
-
-
Save ehynds/554178 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// normalize XMLSerializer object | |
if( !window.XMLSerializer ){ | |
window.XMLSerializer = function(){}; | |
window.XMLSerializer.prototype.serializeToString = function( XMLObject ){ | |
return XMLObject.xml || ''; | |
}; | |
} | |
// convert XML DOM to string | |
var xmlString = XMLSerializer.serializeToString( XMLObject ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for you code ;)