JAXP's added functionality is fairly minor, especially where SAX is involved.
JAXP的附加功能相当小,尤其是涉及到SAX的地方。
That's where SAX can really help: it allows you to receive possibly bad data or error conditions before the program halts processing and gives you a chance to make course corrections.
这就是SAX的真正用途所在:在程序中断处理过程并进行修复之前,允许接收可能错误的数据或者错误状态。
While I appreciate the power and flexibility of SAX parsers, I have also found that they require lots of tedious coding to track where the parser is in the document.
在我欣赏SAX解析器的功能和灵活性的同时,我也发现它们需要进行大量冗长乏味的编码以跟踪解析器在文档中的位置。
应用推荐