} else if (containingElement != null) {
try {
containingElement.getContentWriter(context, null).
write(chars, start, length);
} catch (PAPIException e) {
fatalError(new XMLStreamingException(
"PAPIException encountered during characters event " +
"processing",
getPipelineContext().getCurrentLocator(),
e));
} catch (IOException e) {
fatalError(new XMLStreamingException(
"IOException encountered during characters event " +
"processing (containingElement)",
getPipelineContext().getCurrentLocator(),
e));
}
} else {
try {
outputBuffer.getWriter().write(chars, start, length);
} catch (IOException e) {
fatalError(new XMLStreamingException(
"IOException encountered during characters event " +
"processing (outputBuffer)",
getPipelineContext().getCurrentLocator(),
e));
}