I know that this mostly fits under Sun's multi-schema, but I figure that you guys 
probably can help me...  I'm trying to write a basic function that validates a DOM4J 
Document object by a W3C Schema file.  I'm using the following code for the function:

private boolean validateDoc(Document doc, File fSchema) {
    VerifierFactory factory = new com.sun.msv.verifier.jarv.TheFactoryImpl();
    Schema schema = factory.compileSchema(fSchema);
    Verifier verifier = schema.newVerifier();

    // See if the document is valid by this Schema
        return verifier.verify(doc);
}


I get a "Cannot resolve symbol" error during compilation.  It's complaining about my 
call of "return verifier.verify(doc);"  I looked in the API and it claims that verify 
just needs a Node, and I show Document as implementing Node.  Any ideas on how I can 
get this to work?  I might implement an ErrorHandler for it later, but I just wanted 
to be able to verify my documents for now...


Chris


_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to