摘要
XML作为网络数据交换的标准技术,广泛应用于计算机软件。目前存储数据的主流手段是关系数据库,因此XML文档与关系数据库之间必须进行转换。通过分析XML文档的层次结构,建立了XML文档树模型,并给出结点定义。依据XML的BNF规则给出了元素与属性的正规表达式和相对应的状态转换图,设计了识别元素和属性的词法分析程序用于解析XML文档。提出了XML文档树到关系数据库存储的转换思想和算法,并结合实例给出转换后的关系表。
XML has become a standard technology in exchange of a wide variety of data on web. It is widely applied in field of computer software. However, relational database technology is still the method to save information. Therefore, XML document and relational database are transformed to each other. During analyzing the hierarchy of XML document, XML document tree modelis built and nodes are defined. Elements and attributes regular expression and state transition graph are given according to XML BNF, and lexical analyzer about identifying element and attribute is designed in order to parse XML document. Conversion method and algorithm from XML document tree to relational database is developed, and relational tables are gained by an example.
出处
《计算机工程与设计》
CSCD
北大核心
2008年第21期5507-5509,5571,共4页
Computer Engineering and Design
基金
国家863高技术研究发展计划基金项目(2006AA100208-2)
作者简介
朱珊娜(1979-),女,陕西渭南人,硕士研究生,研究方向为智能信息系统.E—mail:chei7912@163.com
李书琴(1965-),女,陕西澄城人,教授,研究方向为智能信息系统.
安福定(1981-),男,甘肃天水人,硕士研究生,研究方向为生物图像处理与识别。