基于XML的通用商业单据数据转换系统
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
可扩展置标语言XML(eXtensible Markup Language)是由W3C(World Wide Web Consortinum)组织于1998年2月制订的一种面向Internet应用的置标语言。作为对SGML(标准通用置标语言)的一种改良,XML具有良好的扩展性和自描述性、形式与内容分离、遵循严格的语法要求以及提供对多语种的支持等特点,使其成为数据交换的一门新兴技术。
     一个功能完善的商业管理信息系统(MIS)系统,不仅要有内部的电子数据交换,也要有与贸易伙伴之间准确无误的电子数据交换,才能充分发挥MIS系统高效、准确、及时的优势。采用XML作为商业系统之间数据交换的数据中介,实现了异构数据源之间的数据交换。将XML文档与关系数据库之间的数据转换技术构件化,提高了数据转换技术的可重用性、可扩展性和可维护性。
     本文针对商业系统间单据交换的基本需要,结合面向对象的方法和构件技术,设计并实现了基于XML的通用数据转换系统。提出了用标准XML模式作为交换单据的数据表示;详细探讨了描述关系模式与XML模式之间映射关系的转换脚本XML文档;讨论了XML文档与关系型数据库之间相互转换的数据转换构件的设计和实现接口;并基于DOM解析器,详细介绍了数据转换构件中客户端和服务器端数据转换的算法。
     在系统具体实现时,只要对每种单据都生成一份简单直观的转换脚本,并调用数据转换构件的接口,可以非常容易的提取(或存储)带有层次关系的XML文档。
Extensible Markup Language (XML), a new Internet-oriented markup language, was put forward by W3C (World Wide Web Consortinum) in February 1998. As an improvement of SGML (Standard Generalized Markup Language), XML has many advantages, such as good extensibility,self-description, content-presentation separation, comforming to rigid grammar definition and supporting multi-language, which makes it a novel technology in the fields of data exchange.
    An advanced management information system (MIS),Having accurate EDI both inside and between trading partners (there should be inside EDI. Have it with the accurate EDI among the trading partners too), can fulfil the advantages of MIS, efficiency, veracity etc. it makes data exchange between data sources having different structure come true to adopt XML as the data media of data exchange among Business Systems. The modularization of data conversion technologies between XML and Relational Database can improve reuse, expansibility and maintainability of data conversion technologies.
    Considering the basic requirement of bill of document exchange among the business systems and combining Object-Oriented (00) and software component technologies, this paper has designed and realized the general data convert system based on XML. We use standard XML module to express the data exchange and design the converting script XML file to describe the reflection relation between relational module and XML module. Here, The design and actualization of data converting component exchanging data format between
    
    
    
    
    relational database and XML document are discussed, and, based on DOM parser, data converting algorithms inside the components of both server end and client end are introduced in detail.
    While concretely implementing these algorithms, as long as we produce an simple and intuitionistic converting script for each kind of bill document, and call the data converting component interfaces , we can easily draw ( or store ) the XML files with hiberarchy relation.
引文
1 Didier Martin. XML 高级编程.李喆.机械工业出版社,2001:2-3
    2 Won Kim, Ki-Joon Chae. Component-Based Knowledge Engineering Architecture. JOOP, 1999,12(6):44-45
    3 Simon St.Laurent, Robert Biggar.Inside XML DTDs. McGraw-Hill. 1999:57-71
    4 王捷,林锦国.XML数据交换技术在电子商务系统中的应用.南京化工大学学报.2001,23(5):36-40
    5 Ben Chang. Oracle XML开发手册.高波,王琰.机械工业出版社.2001:30-33
    6 段刚.建立我国统一的电子商务交易语言标准cnXML.电子科技大学学报社科版.2001,3(3):67-71
    7 范国闯,刘庆文,李京,钟华.基于XML的B2B电子商务构架.计算机科学.2002,29(2):31-31
    8 XML 中国论坛.XML实用进阶教程.清华大学出版社,2001:267-268
    9 王仲,陈晓鸥.基于XML的数据交换与存取技术研究.计算机工程与应用.2001,(24):108-111
    10 Ritter D. The Missing Link for D2B E-Commerce. Intelligent Enterprise, 1999,11
    11 徐天昕,金烨,李柳玲.基于XML的对称式Web-EDI系统的设计与实现.计算机集成制造系统-CIMS.2001,7(10):53-53
    12 王伟,刘永清.EDI的Internet移植方案.系统工程理论与实践.1999,19(10):39-42
    13 何蓉,方旭明.基于XML的电子商务定单处理管道设计.计算机应用.2002,22(2):72-74
    
    
    14 Jayavel Shanmugasundaram, Eugene Shekita. Efficiently Publishing Relational Data as XML Document. The VLDB Journal. 2001,10(2-3):133-133
    15 William R. Vaughn. ADO Examples and Best Practices. Beta V Corporation. 2000:355-362
    16 Michael C. Daconta, Albert J. Sagnich Jr. XML Development with Java2. Sams Publishing. 2000:387-387
    17 Elliotte Rusty Harold. XML Bible. IDG Books Worldwide, Inc.1999:433-435
    18 瞿裕忠.一个基于 XML 的数据交换模型.计算机工程,2000,26(9):35-35
    19 Wilhelm Hasselbring, Hans Weigand. Languages for Electronic Business Communication:State of the Art.Industrial Managemnet & Data Systems,2001,101(5):225-225
    20 邵维忠,杨芙清.面向对象的系统分析.清华大学出版社,1998:13-13
    21 范玉顺,曹军威.复杂系统的面向对象建模、分析与设计.清华大学出版社,2000:76-76
    22 Booch Grady. The Unified Modeling Language User Guide.Addison-Wesley, Reading MA,1998
    23 Tarja Syst(?). Incremental Construction of Dynamic Models for Object-Oriented Software Systems. JOOP,2000,13(5):18-18
    24 Meilir Page-Jones.UML面向对象设计基础.包晓露,赵晓玲.人民邮电出版社,2001:77-78
    25 Peter Coad, Edward Yourdon.面向对象的分析.邵维忠,廖钢城.北京大学出版社,1992:96-96
    26 杨芙清,梅宏,李克勤.软件复用与软件构件技术.电子学报,1999,27(2):71-71
    
    
    27 刘润东.UML对象设计与编程.北京希望电子出版社,2001:100-100
    28 孙晓春.基于构件的电子商务.计算机应用,2002,22(3):75-75
    29 W.M.P. van der Aalst, K.M. van Hee, R.A. van der Toorn. Component-based Software Architectures:A Framework Based on Inheritance of Behavior. Science of Computer Programming,2002,42(2-3):130-130
    30 Dale Rogerson. COM 技术内幕.杨秀章.清华大学出版社,1999:2-3
    31 Markku Laitkopi and Ari Jaaksi. Extending the Object-Oriented Software Process with Component-Based Design.JOOP. 1999,12(1):43-43
    32 张洪斌.Java2高级程序设计百事通.中科多媒体电子出版社,2001:169-169
    33 Chunck Wood. OLE DB and ODBC Developer's Guide. M&T Books 1999:65-72
    34 李刚,金茂忠.一种可重用构件的设计方法,计算机研究与发展,2000,37(5):610-610
    35 Will Tracz. Confessions of a Used Program Salesman Institutionalizing Software Reuse.Addison-Wesley Publishing Co.,New York,NY, April 1995
    36 罗绮霞.探讨软件构件化技术在计算机辅助教学软件建设中的作用和影响.电化教育研究,1999(1):47-47
    37 杨芙清.软件复用及相关技术.计算机科学.1999,26(5):1-4
    38 李克勤,陈兆良,梅宏,杨芙清.领域工程概述.计算机科学.1999,26(5):21-22
    39 Khun Yee Fung. XSLT Working with XML and HTML.
    
    Addison-Wesley. 2000:161-179
    40 Luqi, Manfred Bory. Software Engineering beyond our Planning Horizon:Automation for Computer-based Systems. Science of Computer Programming. 2002,42(1) :7-7