jQuery.XMLtoStr = function(xmlData) {
if (window.ActiveXObject) {
return xmlData.xml;
} else {
return (new XMLSerializer()).serializeToString(xmlData);
}
}
Usage:
$.XMLtoStr(xmlDoc);
I have had a few people asking me for help with numerous things related to jQuery, and have noticed that they are quite repetative questions, so I have decided to create this blog which will contain a series of tutorials with code snippets I have made, which should help bring some light on many questions.
jQuery.XMLtoStr = function(xmlData) {
if (window.ActiveXObject) {
return xmlData.xml;
} else {
return (new XMLSerializer()).serializeToString(xmlData);
}
}
$.XMLtoStr(xmlDoc);
No comments:
Post a Comment