}
document.appendChild(pi);
} else {
final ElementImpl last = stack.peek();
if (charBuf != null && charBuf.length() > 0) {
final XMLString normalized = charBuf.normalize(normalize);
if (normalized.length() > 0) {
// TextImpl text =
// new TextImpl( normalized );
text.setData(normalized);
text.setOwnerDocument(document);
last.appendChildInternal(prevNode, text);