/** * Emits a warning about private use characters if the warning has not been * emitted yet. * * @throws SAXException */ private void warnAboutPrivateUseChar() throws SAXException { if (!alreadyWarnedAboutPrivateUseCharacters) { warn("Document uses the Unicode Private Use Area(s), which should not be used in publicly exchanged documents. (Charmod C073)"); alreadyWarnedAboutPrivateUseCharacters = true; } }
c = buf[pos] = ' '; warn("This document is not mappable to XML 1.0 without data loss due to " + toUPlusString(c) + " which is not a legal XML 1.0 character.");
c = buf[pos] = ' '; warn("This document is not mappable to XML 1.0 without data loss due to " + toUPlusString(c) + " which is not a legal XML 1.0 character.");
/** * Emits a warning about private use characters if the warning has not been * emitted yet. * * @throws SAXException */ private void warnAboutPrivateUseChar() throws SAXException { if (!alreadyWarnedAboutPrivateUseCharacters) { warn("Document uses the Unicode Private Use Area(s), which should not be used in publicly exchanged documents. (Charmod C073)"); alreadyWarnedAboutPrivateUseCharacters = true; } }
c = buf[pos] = ' '; warn("This document is not mappable to XML 1.0 without data loss due to " + toUPlusString(c) + " which is not a legal XML 1.0 character.");
@Override protected void errWarnLtSlashInRcdata() throws SAXException { warn((stateSave == Tokenizer.DATA ? "CDATA" : "RCDATA") + " element \u201C" + endTagExpectation + "\u201D contained the string \u201C</\u201D, but this did not close the element."); }
@Override protected void errWarnLtSlashInRcdata() throws SAXException { warn((stateSave == Tokenizer.DATA ? "CDATA" : "RCDATA") + " element \u201C" + endTagExpectation + "\u201D contained the string \u201C</\u201D, but this did not close the element."); }
/** * Emits a warning about private use characters if the warning has not been * emitted yet. * * @throws SAXException */ private void warnAboutPrivateUseChar() throws SAXException { if (!alreadyWarnedAboutPrivateUseCharacters) { warn("Document uses the Unicode Private Use Area(s), which should not be used in publicly exchanged documents. (Charmod C073)"); alreadyWarnedAboutPrivateUseCharacters = true; } }
@Override protected void errWarnLtSlashInRcdata() throws SAXException { if (html4) { err((stateSave == Tokenizer.DATA ? "CDATA" : "RCDATA") + " element \u201C" + endTagExpectation + "\u201D contained the string \u201C</\u201D, but it was not the start of the end tag. (HTML4-only error)"); } else { warn((stateSave == Tokenizer.DATA ? "CDATA" : "RCDATA") + " element \u201C" + endTagExpectation + "\u201D contained the string \u201C</\u201D, but this did not close the element."); } }
/** * Reports on an event based on profile selected. * * @param profile * the profile this message belongs to * @param message * the message itself * @throws SAXException */ public void note(String profile, String message) throws SAXException { if (errorProfileMap == null) return; String level = errorProfileMap.get(profile); if ("warn".equals(level)) { warn(message); } else if ("err".equals(level)) { err(message); // } else if ("info".equals(level)) { // info(message); } }
/** * Reports on an event based on profile selected. * * @param profile * the profile this message belongs to * @param message * the message itself * @throws SAXException */ public void note(String profile, String message) throws SAXException { if (errorProfileMap == null) return; String level = errorProfileMap.get(profile); if ("warn".equals(level)) { warn(message); } else if ("err".equals(level)) { err(message); // } else if ("info".equals(level)) { // info(message); } }
/** * Reports on an event based on profile selected. * * @param profile * the profile this message belongs to * @param message * the message itself * @throws SAXException */ public void note(String profile, String message) throws SAXException { if (errorProfileMap == null) return; String level = errorProfileMap.get(profile); if ("warn".equals(level)) { warn(message); } else if ("err".equals(level)) { err(message); // } else if ("info".equals(level)) { // info(message); } }