Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - jaxb vs jaxp for XML validation >Thread Next - Validate regular expressions Re: jaxb vs jaxp for XML validationTo: xmlschema-dev@--.--- Date: 11/30/2007 1:34:00 PM You're assuming that has to be an 'or'. It doesn't. You can provide a JAXP javax.xml.validation.Schema to a JAXB 2.0 Unmarshaller and it will validate the documents it unmarshals using the schema you specified. Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrglavas@c... E-mail: mrglavas@a... xmlschema-dev-request@w... wrote on 11/28/2007 09:04:49 PM: > Given an XSD schema with key/keyref constraints, > which XML processing to use- JAXB or JAXP? > > JAXB is great because I get Marshal/Unmarshal > capability. But JAXB 1.0 doesn't seem to support > Key/Keyref constraint validation. JAXP seems to > support this Key constraint validation in XSD. But, > one has to implement Marshal/Unmarshal which doesn't > come free here. > > Obviously in my case, I do need to construct Java > object for the incoming XML and vice-versa. > > > > ____________________________________________________________________________________ > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
