XStream xsd check

I don't know if the java XStream API supports xsd checking during marshaling and unmarshal java objects.

If so, can anyone give me an example of how the XStream API performs xsd validation.

Thanks in advance.

+4
source share
1 answer

Unfortunately, you cannot do this with XStream. If you need / need a circuit, perhaps you can check out JAXB . Here's an article about checking JAXB / XSD.

+4
source

Source: https://habr.com/ru/post/1436359/


All Articles