XSD:大型架构验证 [英] XSD : Large schema validation
问题描述
我正在尝试使用 JAXP 和 SAX 解析器针对非常大的工业模式验证 xml 文件.问题是,即使是很小的 XML 文件也需要很长时间来验证.
我正在运行 Apache Tomcat 6.0.我尝试将堆大小增加到 1024,但这没有多大帮助.
我可以采取任何其他步骤来提高验证速度吗?
谢谢,高拉夫
你应该在这里发布你的代码.但是你现在可以做的是缓存 Schema 并将其重新用于后续验证.参见此处了解如何使用 JAXP 缓存模式.>
I am trying to validate xml files against a very large industrial schema using JAXP and SAX Parser. The problem is, it takes very long to validate even a small XML file.
I am running Apache Tomcat 6.0. I tried increasing the heap size to 1024 but that was not of much help.
Any other steps that I can take to improve the speed of validation?
Thanks, Gaurav
You should post your code here. But what you can do for now is to CACHE the Schema and re-use it for subsequent validations. See here for how to cache the schema using JAXP.
这篇关于XSD:大型架构验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!