node = factory.createOMText(lastNode.getParent(),
new String(ch, start, length), textNodeType);
((OMNodeEx) lastNode).setNextOMSibling(node);
((OMNodeEx) node).setPreviousOMSibling(lastNode);
} else {
OMContainerEx e = (OMContainerEx) lastNode;
node = factory.createOMText(e, new String(ch, start, length), textNodeType);
e.setFirstChild(node);
}
lastNode = node;
}