Posted By

juanmiguelrua on 04/18/13


Tagged

javascriptxml


Versions (?)

from xml to String


 / Published in: JavaScript
 

Convierte de objeto xml a string

  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  

You need to login to post a comment.