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

A study of XML parsing technique based on StAX cursor API

在线阅读下载全文

作  者:刘雨潇[1] 冒东奎[1] 

机构地区:[1]北方民族大学计算机科学与工程学院,宁夏银川750021

出  处:《宁夏工程技术》2007年第4期313-316,共4页Ningxia Engineering Technology

基  金:国家民委2005年"面向西部企业信息系统整合的Web服务技术研究"基金资助项目

摘  要:为了突破目前最流行的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.

关 键 词:STAX XML XML解折 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象