int nItems = sp.getEntryCount();
for (int i = 0; i < nItems; ++i) {
sp.getEntry(i, tempTVP2);
switch (tempTVP2.getTag()) {
case ValueTag.TEXT_NODE_TAG: {
TextOrCommentNodePointable tcnp = pp.takeOne(TextOrCommentNodePointable.class);
VoidPointable vp = pp.takeOne(VoidPointable.class);
try {
tempTVP2.getValue(tcnp);
tcnp.getValue(ntp, vp);
out.write(vp.getByteArray(), vp.getStartOffset() + 2, vp.getLength() - 2);
} finally {
pp.giveBack(vp);
pp.giveBack(tcnp);
}