计算机工程 ›› 2010, Vol. 36 ›› Issue (06): 45-48.doi: 10.3969/j.issn.1000-3428.2010.06.015

• 软件技术与数据库 • 上一篇    下一篇

XML数据的数值对象化及其转化算法

曹小冲,胡运发,陶晓鹏,葛家翔   

  1. (复旦大学计算机科学技术学院,上海 200433)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2010-03-20 发布日期:2010-03-20

Numerical Value Objectification for XML Data and Its Transform Algorithm

CAO Xiao-chong, HU Yun-fa, TAO Xiao-peng, GE Jia-xiang   

  1. (School of Computer Science, Fudan University, Shanghai 200433)
  • Received:1900-01-01 Revised:1900-01-01 Online:2010-03-20 Published:2010-03-20

摘要: XML数据的结构复杂且具有异构性,数据使用难度大,其文本内容特点使XML数据访问程序难以被有效维护。针对该问题提出数值对象化模型,使用相同算法对所有XML数据进行处理,将XML数据的使用问题转化为面向对象编程语言中的VO值对象处理问题,避免对每类具有不同结构的XML数据文档进行单独解析,增强程序可维护性。工程应用和实验结果验证了该模型的有效性。

关键词: XML数据, 值对象, 外层容器对象, 内部成员对象

Abstract: The complicated contents and structures of XML data lead to problems of hard usage and maintenance for data access programs. Aiming at the problem, this paper proposes value objectified model which gets transformation between XML data and Value Object(VO) in object-oriented programming languages. XML data parsing issues are centralized in one module with several algorithms, which sets XML data users free from XML data parsing and strengthens the program maintainability. Engineering application and experimental results demonstrate that this model is efficient.

Key words: XML data, Value Object(VO), outer container object, inner member object

中图分类号: