from xml to String


/ Published in: JavaScript
Save to your folder(s)

Convierte de objeto xml a string


Copy this code and paste it in your HTML
  1. function xmlToString(xmlObj) {
  2. if (navigator.appName == "Netscape")
  3. {
  4. return (new XMLSerializer()).serializeToString(xmlObj);
  5. }
  6. if (navigator.appName == "Microsoft Internet Explorer")
  7. {
  8. return xmlObj.xml;
  9. }
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.