lib/xml-stream.js
function emitChildren(elements) {
  var i;
  for (i = 0; i < elements.length; i++) {
    var element = elements[i];
    if (typeof element === 'object') {
      emitStart.call(this, element.$name, element.$);
      emitChildren.call(this, element.$children);
      emitEnd.call(this, element.$name);
    } else {
      emitText.call(this, element);
    }
  }
}
function emitChildren(elements) {
  var i;
  for (i = 0; i < elements.length; i++) {
    var element = elements[i];
    if (typeof element === 'object') {
      emitStart.call(this, element.$name, element.$);
      emitChildren.call(this, element.$children);
      emitEnd.call(this, element.$name);
    } else {
      emitText.call(this, element);
    }
  }
}
function emitChildren ( elements ) { var i ; for ( i = 0 ; i < elements . length ; i ++ ) { var element = elements [ i ] ; if ( typeof element === 'object' ) { emitStart . call ( this , element . $name , element . $ ) ; emitChildren . call ( this , element . $children ) ; emitEnd . call ( this , element . $name ) ; } else { emitText . call ( this , element ) ; } } }
Emits child element collection and their descendants. Works only with preserved nodes.
Emits child element collection and their descendants . Works only with preserved nodes .