Package com.spoledge.util.xml

Examples of com.spoledge.util.xml.XMLValidator


    /**
     * Validates source XML.
     */
    public void validate( Reader reader ) throws Exception {
        XMLValidator xv = getXMLValidator();
        XMLValidatorInstance xvi = xv.validate( reader );

        if (xvi.isInvalid()) throw xvi.getParseException();
    }
View Full Code Here


    private static XMLValidator getXMLValidator() {
        synchronized (Generator.class) {
            if (xmlValidator == null) {
                try {
                    xmlValidator = new XMLValidator( Generator.class.getResource( XSD_RESOURCES + "/audao.xsd" ));
                }
                catch (Exception e) {
                    LogFactory.getLog( Generator.class ).error("getXMLValidator(): ", e);
                }
            }
View Full Code Here

TOP

Related Classes of com.spoledge.util.xml.XMLValidator

Copyright © 2018 www.massapicom. 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.