期刊文献+

基于StAX中指针API的XML数据解析技术研究

A study of XML parsing technique based on StAX cursor API
下载PDF
导出
摘要 为了突破目前最流行的2种API,即SAX和DOM的局限,在介绍StAX最新XML数据解析技术的开发背景、分析其解析机理和技术内涵的基础上,分别给出了使用基于指针的API集合解析XML文件和生成XML文件的应用示例.通过这2个应用实例说明使用StAX这种API处理XML文件是十分容易的.在解析XML文件时,不用像DOM那样考虑XML文件的树型结构.同时,它还具有了SAX所没有的写操作功能.因此,StAX这种新式API是DOM和SAX二者优点的结合体,它即具有SAX的效率,又具有DOM的强大功能,并且编码十分简单易读. At present, the most popular kinds of API named SAX and DOM both have its limitation. In order to break through it, this article introduces a new kind of XML data analysis called StAX, and its technology development background, and analysis mechanism and the technical connotation, and then separately presents the use of API set based on the cursor to analyze the XML document and to produce the XML application demonstration. In this article, from two application examples, it can be seen that the using of StAX API and processing of XML document is easy. When we analyze the XML document, we need consider the tree structure like Dom of the XML document. At the same time, it also has the write operation function which StAX has not. There for, StAX, the kind of new API has advantages of DOM and SAX. The StAX not only has the efficiency of SAX, but also has the strong function of DOM and extremely simple codes.
出处 《宁夏工程技术》 CAS 2007年第4期313-316,共4页 Ningxia Engineering Technology
基金 国家民委2005年"面向西部企业信息系统整合的Web服务技术研究"基金资助项目
关键词 STAX XML XML解折 StAX XML XML parsing
  • 相关文献

参考文献3

  • 1JENDROCK E. The Java EE 5 Tutorial, For Sun Java System Application Server Platform Edition 9[EB/OL]. (2007-02)[2007-07]. http://java.sun.com/javaee/5/docs/ tutorial/doc.
  • 2NEHRER P. 使用 StAX 解析 XML, 第 1 部分: Streaming API for XML(StAX)简介[EB/OL]. (2007-03-02)[2007-07]. http://www.ibm.com/developerworks/cn/xml/x-stax 1 .html.
  • 3HAROLS E R. An Introduction to StAX[EB/OL]. (2003- 09-17)[2007-07].http://www.xml.com/pub/a/2003/09/17/ StAX.html.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部