Package nokogiri.internals

Examples of nokogiri.internals.SchemaErrorHandler


        return validate_document_or_file(context, xmlDocument);
    }
   
    IRubyObject validate_document_or_file(ThreadContext context, XmlDocument xmlDocument) {
        RubyArray errors = (RubyArray) this.getInstanceVariable("@errors");
        ErrorHandler errorHandler = new SchemaErrorHandler(context.getRuntime(), errors);
        setErrorHandler(errorHandler);

        try {
            validate(xmlDocument.getDocument());
        } catch(SAXException ex) {
View Full Code Here

TOP

Related Classes of nokogiri.internals.SchemaErrorHandler

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.