1

我正在使用 XML ValidatorBuddy 设置批处理验证环境。在创建批处理任务时,我可以在 Xerces-C 和 Xerces-C SAX 解析器(以及其他...)之间进行选择。在为我的 XML 实例文档运行批处理时,无论我使用 Xerces 还是 Xerces SAX,我都会得到相同的结果。

我知道 SAX 解析器需要更少的内存并且还可以验证更大的 XML 文件。但是,如果我为计划的批处理验证任务选择 SAX 解析器,会有什么缺点吗?

4

1 回答 1

3

You can find more information about differences between the Xerces-C SAX and DOM parser here

According to the link above in your particular case of XML ValidatorBuddy the only difference will be that using SAX the batch run will use much less memory and should be the preferred parser.

于 2012-09-04T09:15:06.563 回答