Examples of XMLValidationProblem


Examples of org.codehaus.stax2.validation.XMLValidationProblem

    {
        if (rep != null) {
            /* Note: since the problem occurs at DTD (schema) parsing,
             * not during validation, can not set reporter.
             */
            XMLValidationProblem prob = new XMLValidationProblem
                (loc, msg, XMLValidationProblem.SEVERITY_WARNING, probType);
            rep.report(msg, probType, prob, loc);
        }
    }
View Full Code Here

Examples of org.codehaus.stax2.validation.XMLValidationProblem

        public void reportUndeclared(ValidationContext ctxt, XMLValidator dtd)
            throws XMLStreamException
        {
            String msg = MessageFormat.format(ErrorConsts.ERR_DTD_UNDECLARED_ENTITY, new Object[] { (mIsPe ? "parsed" : "general"), mName });
            XMLValidationProblem prob = new XMLValidationProblem
                (mLocation, msg, XMLValidationProblem.SEVERITY_FATAL);
            prob.setReporter(dtd);
            ctxt.reportProblem(prob);
        }
View Full Code Here

Examples of org.codehaus.stax2.validation.XMLValidationProblem

                                                             inputEnc });
            String type = ErrorConsts.WT_XML_DECL;
            /* 30-May-2008, tatus: Should wrap all the info as XMValidationProblem
             *    since that's Woodstox' contract wrt. relatedInformation field.
             */
            XMLValidationProblem prob = new XMLValidationProblem(loc, msg, XMLValidationProblem.SEVERITY_WARNING, type);
            rep.report(msg, type, prob, loc);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.