private void throwForbiddenPE() throws XMLStreamException { reportWFCViolation("Can not have parameter entities in the internal subset, except for defining complete declarations (XML 1.0, #2.8, WFC 'PEs In Internal Subset')"); }
private void throwForbiddenPE() throws XMLStreamException { reportWFCViolation("Can not have parameter entities in the internal subset, except for defining complete declarations (XML 1.0, #2.8, WFC 'PEs In Internal Subset')"); }
private void reportBadDirective(String dir) throws XMLStreamException { String msg = "Unrecognized DTD directive '<!"+dir+" >'; expected ATTLIST, ELEMENT, ENTITY or NOTATION"; if (mCfgSupportDTDPP) { msg += " (or, for DTD++, TARGETNS)"; } reportWFCViolation(msg); }
private void reportBadDirective(String dir) throws XMLStreamException { String msg = "Unrecognized DTD directive '<!"+dir+" >'; expected ATTLIST, ELEMENT, ENTITY or NOTATION"; if (mCfgSupportDTDPP) { msg += " (or, for DTD++, TARGETNS)"; } reportWFCViolation(msg); }
private void throwForbiddenPE() throws XMLStreamException { reportWFCViolation("Can not have parameter entities in the internal subset, except for defining complete declarations (XML 1.0, #2.8, WFC 'PEs In Internal Subset')"); }
private void reportBadDirective(String dir) throws XMLStreamException { String msg = "Unrecognized DTD directive '<!"+dir+" >'; expected ATTLIST, ELEMENT, ENTITY or NOTATION"; if (mCfgSupportDTDPP) { msg += " (or, for DTD++, TARGETNS)"; } reportWFCViolation(msg); }
private void throwDTDElemError(String msg, Object elem) throws XMLStreamException { reportWFCViolation(elemDesc(elem) + ": " + msg); }
private void throwDTDAttrError(String msg, DTDElement elem, NameKey attrName) throws XMLStreamException { reportWFCViolation(attrDesc(elem, attrName) + ": " + msg); }
protected void handleGreedyEntityProblem(WstxInputSource input) throws XMLStreamException { // Here it can only be of VC kind... if (mCfgFullyValidating) { // since it's a VC, not WFC reportWFCViolation(entityDesc(input) + ": " + "Unbalanced PE: has to be fully contained in a declaration (as per xml 1.0.3, section 2.8, VC 'Proper Declaration/PE Nesting')"); } }
private void throwDTDAttrError(String msg, DTDElement elem, NameKey attrName) throws XMLStreamException { reportWFCViolation(attrDesc(elem, attrName) + ": " + msg); }
protected void handleGreedyEntityProblem(WstxInputSource input) throws XMLStreamException { // Here it can only be of VC kind... if (mCfgFullyValidating) { // since it's a VC, not WFC reportWFCViolation(entityDesc(input) + ": " + "Unbalanced PE: has to be fully contained in a declaration (as per xml 1.0.3, section 2.8, VC 'Proper Declaration/PE Nesting')"); } }
private void throwDTDElemError(String msg, Object elem) throws XMLStreamException { reportWFCViolation(elemDesc(elem) + ": " + msg); }
protected void handleGreedyEntityProblem(WstxInputSource input) throws XMLStreamException { // Here it can only be of VC kind... if (mCfgFullyValidating) { // since it's a VC, not WFC reportWFCViolation(entityDesc(input) + ": " + "Unbalanced PE: has to be fully contained in a declaration (as per xml 1.0.3, section 2.8, VC 'Proper Declaration/PE Nesting')"); } }
private void throwDTDElemError(String msg, Object elem) throws XMLStreamException { reportWFCViolation(elemDesc(elem) + ": " + msg); }
private void throwDTDAttrError(String msg, DTDElement elem, NameKey attrName) throws XMLStreamException { reportWFCViolation(attrDesc(elem, attrName) + ": " + msg); }
private void loadMoreScoped(WstxInputSource currScope, String entityName, Location loc) throws IOException, XMLStreamException { boolean check = (mInput == currScope); loadMore(getErrorMsg()); // Did we get out of the scope? if (check && (mInput != currScope)) { reportWFCViolation("Unterminated entity value for entity '" +entityName+"' (definition started at " +loc+")"); } }
private void loadMoreScoped(WstxInputSource currScope, String entityName, Location loc) throws IOException, XMLStreamException { boolean check = (mInput == currScope); loadMore(getErrorMsg()); // Did we get out of the scope? if (check && (mInput != currScope)) { reportWFCViolation("Unterminated entity value for entity '" +entityName+"' (definition started at " +loc+")"); } }
private void loadMoreScoped(WstxInputSource currScope, String entityName, Location loc) throws IOException, XMLStreamException { boolean check = (mInput == currScope); loadMore(getErrorMsg()); // Did we get out of the scope? if (check && (mInput != currScope)) { reportWFCViolation("Unterminated entity value for entity '" +entityName+"' (definition started at " +loc+")"); } }
/** * Handling of PE matching problems is actually intricate; one type * will be a WFC ("PE Between Declarations", which refers to PEs that * start from outside declarations), and another just a VC * ("Proper Declaration/PE Nesting", when PE is contained within * declaration) */ protected void handleIncompleteEntityProblem(WstxInputSource closing) throws XMLStreamException { // Did it start outside of declaration? if (closing.getScopeId() == 0) { // yup // and being WFC, need not be validating reportWFCViolation(entityDesc(closing) + ": " +"Incomplete PE: has to fully contain a declaration (as per xml 1.0.3, section 2.8, WFC 'PE Between Declarations')"); } else { // whereas the other one is only sent in validating mode.. if (mCfgFullyValidating) { reportVCViolation(entityDesc(closing) + ": " +"Incomplete PE: has to be fully contained in a declaration (as per xml 1.0.3, section 2.8, VC 'Proper Declaration/PE Nesting')"); } } }
/** * Handling of PE matching problems is actually intricate; one type * will be a WFC ("PE Between Declarations", which refers to PEs that * start from outside declarations), and another just a VC * ("Proper Declaration/PE Nesting", when PE is contained within * declaration) */ protected void handleIncompleteEntityProblem(WstxInputSource closing) throws XMLStreamException { // Did it start outside of declaration? if (closing.getScopeId() == 0) { // yup // and being WFC, need not be validating reportWFCViolation(entityDesc(closing) + ": " +"Incomplete PE: has to fully contain a declaration (as per xml 1.0.3, section 2.8, WFC 'PE Between Declarations')"); } else { // whereas the other one is only sent in validating mode.. if (mCfgFullyValidating) { reportVCViolation(entityDesc(closing) + ": " +"Incomplete PE: has to be fully contained in a declaration (as per xml 1.0.3, section 2.8, VC 'Proper Declaration/PE Nesting')"); } } }