3
作爲構建過程的一部分,我想根據Schema(XSD)驗證XML文件。我試圖使用schemavalidate任務是這樣的:如何根據使用ant的Schema驗證XML文件?
<schemavalidate noNamespaceFile="schemas/Model.xsd" file="Model.xml"/>
我們得到以下錯誤:
[...] 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
我使用的是最新的螞蟻分佈(1.7.1)。需要其他庫來驗證工作嗎?