src/basis/xml.js
function XML2String(node){
    // modern browsers feature
    if (typeof XMLSerializer != 'undefined')
      return new XMLSerializer().serializeToString(node);

    // old IE feature
    if (typeof node.xml == 'string')
      return node.xml;

    // other browsers
    if (node.nodeType == domUtils.DOCUMENT_NODE)
      node = node.documentElement;

    return domUtils.outerHTML(node);
  }
function XML2String(node){
    // modern browsers feature
    if (typeof XMLSerializer != 'undefined')
      return new XMLSerializer().serializeToString(node);

    // old IE feature
    if (typeof node.xml == 'string')
      return node.xml;

    // other browsers
    if (node.nodeType == domUtils.DOCUMENT_NODE)
      node = node.documentElement;

    return domUtils.outerHTML(node);
  }
function XML2String ( node ) { // modern browsers feature if ( typeof XMLSerializer != 'undefined' ) return new XMLSerializer ( ) . serializeToString ( node ) ; // old IE feature if ( typeof node . xml == 'string' ) return node . xml ; // other browsers if ( node . nodeType == domUtils . DOCUMENT_NODE ) node = node . documentElement ; return domUtils . outerHTML ( node ) ; }
XML -> string
XML - > string