public/javascripts/WireIt/plugins/grouping/examples/sawire/util.js
function xmlValue(node) {
  if (!node) {
    return '';
  }

  var ret = '';
  if (node.nodeType == DOM_TEXT_NODE ||
      node.nodeType == DOM_CDATA_SECTION_NODE) {
    ret += node.nodeValue;

  } else if (node.nodeType == DOM_ATTRIBUTE_NODE) {
    if (ajaxsltIsIE6) {
      ret += xmlValueIE6Hack(node);
    } else {
      ret += node.nodeValue;
    }
  } else if (node.nodeType == DOM_ELEMENT_NODE ||
             node.nodeType == DOM_DOCUMENT_NODE ||
             node.nodeType == DOM_DOCUMENT_FRAGMENT_NODE) {
    for (var i = 0; i < node.childNodes.length; ++i) {
      ret += arguments.callee(node.childNodes[i]);
    }
  }
  return ret;
}
function xmlValue(node) {
  if (!node) {
    return '';
  }

  var ret = '';
  if (node.nodeType == DOM_TEXT_NODE ||
      node.nodeType == DOM_CDATA_SECTION_NODE) {
    ret += node.nodeValue;

  } else if (node.nodeType == DOM_ATTRIBUTE_NODE) {
    if (ajaxsltIsIE6) {
      ret += xmlValueIE6Hack(node);
    } else {
      ret += node.nodeValue;
    }
  } else if (node.nodeType == DOM_ELEMENT_NODE ||
             node.nodeType == DOM_DOCUMENT_NODE ||
             node.nodeType == DOM_DOCUMENT_FRAGMENT_NODE) {
    for (var i = 0; i < node.childNodes.length; ++i) {
      ret += arguments.callee(node.childNodes[i]);
    }
  }
  return ret;
}
function xmlValue ( node ) { if ( ! node ) { return '' ; } var ret = '' ; if ( node . nodeType == DOM_TEXT_NODE || node . nodeType == DOM_CDATA_SECTION_NODE ) { ret += node . nodeValue ; } else if ( node . nodeType == DOM_ATTRIBUTE_NODE ) { if ( ajaxsltIsIE6 ) { ret += xmlValueIE6Hack ( node ) ; } else { ret += node . nodeValue ; } } else if ( node . nodeType == DOM_ELEMENT_NODE || node . nodeType == DOM_DOCUMENT_NODE || node . nodeType == DOM_DOCUMENT_FRAGMENT_NODE ) { for ( var i = 0 ; i < node . childNodes . length ; ++ i ) { ret += arguments . callee ( node . childNodes [ i ] ) ; } } return ret ; }
Returns the text value of a node; for nodes without children this is the nodeValue, for nodes with children this is the concatenation of the value of all children.
Returns the text value of a node ; for nodes without children this is the nodeValue for nodes with children this is the concatenation of the value of all children .