if (fDOMErrorHandler != null) {
fDOMError.reset();
fDOMError.setMessage("The character sequence \"]]>\" must not appear in content"+
" unless used to mark the end of a CDATA section.");
fDOMError.setSeverity(DOMError.SEVERITY_FATAL_ERROR);
fDOMError.setLocator(new DOMLocatorImpl(-1, -1, -1, fCurrentNode, null));
boolean continueProcess = fDOMErrorHandler.handleError(fDOMError);
// Should we always terminate the serialization?
// otherwise should we split CDATA section..?
if (!continueProcess) {
throw new IOException();
}
}
}
else if (index >=0 && ((Boolean)fFeatures.get("split-cdata-sections")).booleanValue()) {
// issue warning
if (fDOMErrorHandler != null) {
fDOMError.reset();
fDOMError.setMessage("Spliting a CDATA section containing the CDATA section termination marker ']]>' ");
fDOMError.setSeverity(DOMError.SEVERITY_WARNING);
fDOMError.setLocator(new DOMLocatorImpl(-1, -1, -1, fCurrentNode, null));
fDOMErrorHandler.handleError(fDOMError);
}
}
while ( index >= 0 ) {