users@jaxb.java.net

Re: Exactly what validation does the unmarshaller ignore when use setValidating(false)

From: Ed Mooney <Ed.Mooney_at_Sun.COM>
Date: Mon, 05 Jan 2004 11:06:38 -0500

Hi Adrian,

Everything except missing (or unexpected) elements (in well-formed
doucments). Please see [1].

Regards,
-- 
Ed Mooney         |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201            |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive       |fruit flies like
781-442-0459      |Burlington, MA  01803 |a banana. Groucho
[1] 
https://jaxb.dev.java.net/servlets/BrowseList?list=users&by=thread&from=35667
Adrian Brogan wrote:
> I have an XML schema that defines say element B to be mandatory. If the 
> source data omits this element, the unmarshaller’s default event handler 
> throws an exception when it encounters the next element after B stating 
> that it is unexpected. If I call setValidating(false) on the 
> unmarshaller, it still throws the same error. So I guess my question is, 
> exactly what types of validation are ignored when validation is disabled 
> on the unmarshaller?
> 
>  
> 
> Regards
> 
>  
> 
> Adrian
> 
>  
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net