长江科学院院报 ›› 2007, Vol. 24 ›› Issue (2): 22-24.

• 信息技术应用 • 上一篇    下一篇

XML技术在水文资料整汇编软件中的应用

王海军,张潮   

  • 出版日期:2007-04-01 发布日期:2012-03-05

Application of XML Technology in Hydrology Data Process Software

 WANG  Hai-Jun, ZHANG  Chao   

  • Online:2007-04-01 Published:2012-03-05

摘要: 研究了基于XML(extensible markup language)技 术制作报表的方法,并在水文资料整汇编软件研制中得到应用。该方法的基本思路是:首先 将报表抽象为一系列基本元素,采用XML中的Element进行表达;然后由基本元素组合形成报 表中的标题、表头、报表数据、表尾、辅助信息等基本结构,形成报表;最后在可视化平台 Microsoft Visual C++6.0中,对XML进行解析,采用数据库技术实现报表的制 作与输出。研究结果表明:该方法能够解决水文资料整汇编中成果表制作内容多、数据项复 杂、格式要求严格等报表制作上的困难问题;能满足《水文年鉴》汇编刊印工作要求和水文 日常工作需要;用该方法制作的水文报表系统操作方便、数据维护简单。

Abstract: In this paper, the method of making report is put for ward and applied to developing hydrology data process software. The basic thought is: to abstract a serial basic element from the report; to use the representa tion style of element in XML(extensible markup language); to build the title, head, data, tail and assistant information of the report made by the basic elements; and then to form the report. At last, the XML report is resolved and the making and output of the report can be implemented by using the database technology on the visualized platform VC++. The research result show that the problems of data complexity and rigorous format are solved in making report of hydrology data process , which can meet the need of the press of a hydrology almanac.