摘要
在分析XML文档特点基础之上,利用DOM建立XML文档的节点树,研究并提出了一套规则将一个XML节点树映射为三个公共类。为此提出两个算法以实现XML文档与这三个公共类之间的双向映射。利用持久层框架(Hibernate)来实现这三个类与数据库之间的映射。从而在XML文档与数据库之间建立了一个映射持久层,以实现软件元素的大粒度重用,增强系统的可移植性。同时为了解决异构环境下系统的通信问题,利用CORBA具有平台和语言无关的特性来设计系统的通信模块,使得用户可以在不同的平台上,以不同的编程语言采用静态或动态的方式对服务发起调用。
Based on the analysis of the characteristics of XML document, we build a node tree of XML document by DOM, and put forward a set of rules to map XML node tree into three common classes,and provide two arithmetic to complete mutual mapping between XML document and the three common classes; By the persistence layer frame (Hibernate), realize the mutual mapping between XML document and database, thereby we build a mapping persistence layer between XML document and database, and realize big granularity reuse of software elements, and enhance system' s transplantable characteristic; At the same time, in order to resolve communications problem of the system in isomeric environment, we use CORBA technology which has the characteristics don't depend on console and language to design system' s communications module, make user can use different programming languages in different consoles to call the service.
出处
《微处理机》
2009年第2期43-46,50,共5页
Microprocessors
基金
江苏省高校自然科学基金(05KJB520048)