super.endCDATA();
this.cdataMode = false;
if(this.cdataBufferLen > 0) {
final Node cdata =
new CDATASection(new String(this.cdataBuffer, 0, this.cdataBufferLen), null, null, true);
if (this.elementStack.isEmpty()) {
this.rootNodes.add(cdata);
} else {
final NestableNode parent = this.elementStack.peek();
parent.addChild(cdata);