Skip to main content

Disabling Validation for Marshall

1 reply [Last post]
jc98789
Offline
Joined: 2005-12-06
Points: 0

I have a requirement to store data in XML, however the data is sometimes incomplete.

Is it possible to disable the validation before marshalling to XML ?

thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kohsuke
Offline
Joined: 2003-06-09
Points: 0

Just set ValidationEventHandler and return true to ignore errors.