摘要
RosettNet协议中PIPs是基于XML的文档。在基于RosettaNet的应用中处理XML文档也就成为了核心的任务。为了使RosettaNet的应用开发快捷迅速,并且具有高性能和高可维护性,要求XML处理模块使用简单,代码可读性好,并且执行的效率要高。本文分析了目前比较流行的XML的处理工具DOM,SAX以及XMLBeans,针对其不足,和RosettNet应用的需求,提出了一种基于Xpath查询方式的XML适配器。最后,通过比较其与现有处理工具的可操作性和执行效率得出这种基于查询方式的XML适配器更加适合RosettaNet这类以处理XML文档为核心的应用。
PIPs in RosettNet protocol is an XML-based business document. The main task of RosettaNet-based application is to process the XML documents. In order to accelerate the development of RosettaNet, and to guarantee the high performance and maintainability, it is required that the XML adapter must be easy to use, has good readable code and high executive efficiency. This paper analyzed the most popular XML tools DOM, SAX and XMLBeans, aiming at their shortages, we presented a new XML adapter which based on Xpath query. Comparing the new adapter with the existed tools,we finally conclude that the new adapter is more suitable in the application whose main task is to operate the XML documents such as RosettaNet.
出处
《电子测量技术》
2007年第10期58-60,95,共4页
Electronic Measurement Technology