docs: function flushData() {
          if (currentCharacters) {
              currentElement.appendChild(
                      doc.createTextNode(currentCharacters));
              currentCharacters = '';
          }
          else if (currentCdata) {
              currentElement.appendChild(
                      doc.createCDATASection(currentCdata));
              currentCdata = '';
          }
      }