How to check XML file for schema using ant?

As part of my build process, I want to validate XML files on a schema (XSD). I am trying to use the schemavalidate task as follows:

<schemavalidate noNamespaceFile="schemas/Model.xsd" file="Model.xml"/>

This results in the following error:

[...]
BUILD FAILED
build.xml: 65: The following error occurred while executing this line:
build.xml: 59: Parser does not support Xerces or JAXP schema features

I am using the latest ant distribution (1.7.1). Do I need additional libraries to test health?

+3
source share
1 answer

The task associated with the circuit actually works, as shown in the question.

, xsd . , . Ant , .

.

+5

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


All Articles