摘要
为了实现Web应用程序数据的共享问题,提出基于XML的数据交换方案。在该方案中采用JDOM实现XML文件的存取,采用JDBC实现数据源的访问,采用XSLT实现数据的表示。同时结合MVC模式和B/S三层结构构建数据交换系统框架,用Servlet设计XML转换器和DB转换器,用于XML与关系型数据的相互转化。为提高应用程序检索速度,设计查询翻译器,实现了XML查询到SQL查询的转换。该方法实现了应用不同DBMS的Web应用数据的共享。
A scheme of data exchange based on XML is proposed to resolve data sharing among Web application pro- gramms. In this method, the JDOM is used for XML file access, the JDBC is used for data source access, the XSLT is used for data representation. The data exchange system framework is built by using MVC pattern and B/S three-tier structure, the Servlet is used to design XML converter and DB converter for exchange between XML and relational data. In order to improve the speed of applications retrieve and design the query translator, the conversion from XML query to SQL is achieved. This method enables data sharing between Web applications with different DBMS.
出处
《现代电子技术》
2010年第20期89-90,94,共3页
Modern Electronics Technique