users@jaxb.java.net

RE: Problem with mandatory elements

From: LuisCGM <yo.luisjavier_at_gmail.com>
Date: Tue, 13 May 2008 03:10:09 -0700 (PDT)

Many thanks, that's the solution.
Regards



Ted Poovey wrote:
>
> You need to set a schema for the unmarshaller as one option.
> See Schema and SchemaFactory
>
> Thank you
>
> Ted Poovey
> Software Engineer III
> I.T. Application Management
> U.S. Central
> 9701 Renner Blvd
> Lenexa, KS 66219
> (ph) 913-227-6106
> (fax) 913-227-6254
>
>
> -----Original Message-----
> From: LuisCGM [mailto:yo.luisjavier_at_gmail.com]
> Sent: Thursday, May 08, 2008 12:41 PM
> To: users_at_jaxb.dev.java.net
> Subject: Problem with mandatory elements
>
>
> Hi all,
>
> I have a schema with several mandatory elements, and others with
> minOccurs=0
> (no mandatory). After generating the list of classes from that schema,
> I
> try to parse an xml file that it does not include this mandatory
> elements,
> the unmarshalling does not detect the error and any error is raise.
>
> Is it possible to detect this kind of error?
>
> Many thanks.
> --
> View this message in context:
> http://www.nabble.com/Problem-with-mandatory-elements-tp17130101p17130
> 101.html
> Sent from the java.net - jaxb users mailing list archive at
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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
>
>
>

-- 
View this message in context: http://www.nabble.com/Problem-with-mandatory-elements-tp17130101p17205200.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.