摘要: 随着互联网与XML技术的不断发展,实现XML文件与非结构化的文本文件之间的相 互转换的要求日趋提高,针对该问题$$$提出了一种基于文档树的XML文件转换方法。该方法 通过文档树的形式描述文本文件的结构与内容,在特定的映射规则下对文档树进行遍历以实 现RTF文件为代表的文本文件与XML文件的相互转换,最后介绍了文档树的构造及相关算法。
关键词:
XML,
RTF,
文件转换,
文档树
Abstract: With the development of XML and Internet technology, how to convert non-structured files into well-formed XML ones is becoming more important than e ver before. This paper presents a new method for XML document conversion based o n document tree. It describes the logical structure and content of text files by automatically extracting document tree. Then it traverses document trees with t he defined mapping rules. By this way, it realizes the conversion. In addition, it introduces related algorithms for the document tree.
中图分类号:
蒋悦,吴壮志,赵旭林,怀进鹏. 基于文档树的XML文件转换[J]. , 2003, 29(21): 101-103.
JIANG Yue, WU Zhuangzhi, ZHAO Xulin, HUAI Jinpeng. XML Document Conversion Based on Document Tree[J]. , 2003, 29(21): 101-103.