@Override protected char errNcrControlChar(char ch) throws SAXException { switch (contentNonXmlCharPolicy) { case FATAL: fatal("Character reference expands to a control character (" + toUPlusString((char) value) + ")."); break; case ALTER_INFOSET: ch = '\uFFFD'; // fall through case ALLOW: err("Character reference expands to a control character (" + toUPlusString((char) value) + ")."); } return ch; }
@Override protected char errNcrNonCharacter(char ch) throws SAXException { switch (contentNonXmlCharPolicy) { case FATAL: fatal("Character reference expands to a non-character (" + toUPlusString((char) value) + ")."); break; case ALTER_INFOSET: ch = '\uFFFD'; // fall through case ALLOW: err("Character reference expands to a non-character (" + toUPlusString((char) value) + ")."); } return ch; }
@Override protected char errNcrControlChar(char ch) throws SAXException { switch (contentNonXmlCharPolicy) { case FATAL: fatal("Character reference expands to a control character (" + toUPlusString((char) value) + ")."); break; case ALTER_INFOSET: ch = '\uFFFD'; // fall through case ALLOW: err("Character reference expands to a control character (" + toUPlusString((char) value) + ")."); } return ch; }
@Override protected char errNcrNonCharacter(char ch) throws SAXException { switch (contentNonXmlCharPolicy) { case FATAL: fatal("Character reference expands to a non-character (" + toUPlusString((char) value) + ")."); break; case ALTER_INFOSET: ch = '\uFFFD'; // fall through case ALLOW: err("Character reference expands to a non-character (" + toUPlusString((char) value) + ")."); } return ch; }
@Override protected char errNcrControlChar(char ch) throws SAXException { switch (contentNonXmlCharPolicy) { case FATAL: fatal("Character reference expands to a control character (" + toUPlusString((char) value) + ")."); break; case ALTER_INFOSET: ch = '\uFFFD'; // fall through case ALLOW: err("Character reference expands to a control character (" + toUPlusString((char) value) + ")."); } return ch; }
@Override protected char errNcrNonCharacter(char ch) throws SAXException { switch (contentNonXmlCharPolicy) { case FATAL: fatal("Character reference expands to a non-character (" + toUPlusString((char) value) + ")."); break; case ALTER_INFOSET: ch = '\uFFFD'; // fall through case ALLOW: err("Character reference expands to a non-character (" + toUPlusString((char) value) + ")."); } return ch; }
case '\u000C': if (contentNonXmlCharPolicy == XmlViolationPolicy.FATAL) { fatal("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."); switch (contentNonXmlCharPolicy) { case FATAL: fatal("Forbidden code point " + toUPlusString(c) + "."); break;
case '\u000C': if (contentNonXmlCharPolicy == XmlViolationPolicy.FATAL) { fatal("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."); switch (contentNonXmlCharPolicy) { case FATAL: fatal("Forbidden code point " + toUPlusString(c) + "."); break;
case '\u000C': if (contentNonXmlCharPolicy == XmlViolationPolicy.FATAL) { fatal("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."); switch (contentNonXmlCharPolicy) { case FATAL: fatal("Forbidden code point " + toUPlusString(c) + "."); break;