Vlaidation means the input XML file is validated against its schema i.e. the structure and constraints defined in the schema are followed in the XML instance.
JAXB Objects are created from XSD's. When you create an object, when you create the XML from that object, the resultant XML will be validated against the XSD
Chris Lexington
Greenhorn
Joined: Apr 12, 2005
Posts: 10
posted
0
I don't know how much of this is news to you, but here goes.
Unmarshalling means moving XML to and an object tree, Marshalling means the reverse. In JAXB, there is an Unmarshaller object and a Marshaller object. The Unmarshaller does validation, the marshaller does not. There is also a way to perform validation anytime you want (programmatically), but I have never used that feature.