if (last.getNodeName().equals(qname)) {
if (charBuf != null && charBuf.length() > 0) {
// remove whitespace if the node has just a single text child,
// keep whitespace for mixed content.
final XMLString normalized;
if ((charBuf.isWhitespaceOnly() && suppressWSmixed) || last.preserveSpace()) {
normalized = charBuf;
} else {
normalized = last.getChildCount() == 0 ?
charBuf.normalize(normalize) :
(charBuf.isWhitespaceOnly() ? null : charBuf);