next = i.nextItem();
}
}
// flush remaining character data
if (buf != null && buf.length() > 0)
{receiver.characters(buf);}
} catch (final SAXException e) {
LOG.warn("SAXException during serialization: " + e.getMessage(), e);
throw new XPathException(this, e);
}
if (context.getProfiler().isEnabled())