users@jaxb.java.net

Location of validation Errors

From: Paul Campbell <pwc_at_u.washington.edu>
Date: Tue, 19 Aug 2003 12:50:30 -0700

Prior to JavaOne, there was an indication that the next version of jaxb
would have the ValidationHandler updated to provide location information,
because it was understood that it didn't make sense for everyone who needed
to know which line number was in error to write his own handler.

I downloaded/installed the most recent version of JWSDP from javasoft.com

I just ran an intentionaly flawed xml file and got this result without
location information:

     [java] INFO: setValidating(true)
     [java] DefaultValidationEventHandler: [ERROR]: tag name
"xile_owner_email"
                            is not allowed. Possible tag names are:
<file_owner_email>
     [java] Location:
     [java] com.sun.msv.verifier.ValidityViolation: tag name
"xile_owner_email"
                            is not allowed. Possible tag names are:
<file_owner_email>
     [java] at com.sun.msv.verifier.Verifier.onError(Verifier.java:331)




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net