摘要
高级API中的抽象无法细粒度控制解析器与XML数据之间的交互,有时会产生异常,Simple API for XML(SAX)提供了一种易于处理这些异常的方法.在分析SAX工作机制的基础上,作者提出了基于SAX的XML解析异常处理方法,即使在没有直接使用SAX的情况下,该法仍然能细粒度控制解析器与XML数据之间交互而无异常,并在多个实例中得到了验证,为应用程序用户提供了更好的经验.
The high-level API can not fine-grained control of data between the XML parser and interactive,will generate an error.Simple API for XML(SAX) to provide an easy-to-use way of dealing with these errors,even without the direct use of SAX,can still be using this method.Analysis of the working mechanism of SAX,the SAX is the basis of the majority of XML processing,and applied in the example,to achieve strict control of the fine-grained.This accumulation of experience,can avoid or smooth reporting error,the application to provide a better user experience.
出处
《陕西科技大学学报(自然科学版)》
2009年第5期106-109,共4页
Journal of Shaanxi University of Science & Technology