首页 | 本学科首页   官方微博 | 高级检索  
     

基于表格驱动的XML配置文件解析与生成技术
引用本文:郭瑞杰,王斌,丁捷. 基于表格驱动的XML配置文件解析与生成技术[J]. 计算机工程与应用, 2006, 42(9): 89-92
作者姓名:郭瑞杰  王斌  丁捷
作者单位:中国科学院研究生院,北京,100039;中国科学院计算技术研究所,北京,100080;中国科学院计算技术研究所,北京,100080
基金项目:国家重点基础研究发展计划(973计划)
摘    要:XML文件作为配置文件是很多系统的首选,但是目前针对XML文件的配置信息提取与配置文件的构造技术都缺乏通用性,效率较低,扩展性很差。针对这一问题,论文提出了一种通用的基于表格驱动的XML配置文件解析与构造技术。该技术具有如下几个特征:第一,采用表格驱动,用表格来表示XML的结构信息,可实现配置信息更加严格的验证;第二,利用表格中的槽(slot)结合函数回调来提取配置信息和生成配置文件,使数据和对数据的操作分开,降低了与配置文件的耦合性,同时也使解析和构造统一化,具有高效性。第三,采用基于插件的开放式架构,通过扩展插件可以解析、生成任何复杂的配置文件,具有易扩展性;实际应用表明,论文提出的XML配置文件解析与构造技术具有通用性、易扩展性和高效性。

关 键 词:配置文件  表格驱动  XML解析器  xerces-c++  ICU
文章编号:1002-8331-(2006)09-0089-04
收稿时间:2005-08-01
修稿时间:2005-08-01

Table-Driven XML-Based Configuration File Parsing and Constructing Technology
Guo Ruijie,Wang Bin,Ding Jie. Table-Driven XML-Based Configuration File Parsing and Constructing Technology[J]. Computer Engineering and Applications, 2006, 42(9): 89-92
Authors:Guo Ruijie  Wang Bin  Ding Jie
Affiliation:1.Graduate School of the Chinese Academy of Sciences,Beijing 100039;2.Software Division,Institute of Computing Technology, Chinese Academy of Sciences, Beijing 100080
Abstract:XML configuration files are gaining increasing popularity due to its convenience.But most of the current methods which parse and construct XML configuration files perform poor in efficent,extensibility and generality.In this paper,a table-driven method is proposed to solve this problem.Different from traditional ones,the method has following features,Firstly,it is based on table-driven,and stores XML structure information in tables which can validate the configuration information more strictly,Secondly,by using table's slots and adopting callback function mechanism,it separates data from the operations on them so as to deduce the conpling with configuration files.Finally,it employs plug-in based open framework,with which can parse and construct any complex configuration files.Experimental results also show that our method is general,extensible,and efficient,and very valuable in practice.
Keywords:xerces-c   ICU
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号