利用文档树建立XML文档与数据库的映射
Building Mapping Between XML and Database Using Document Tree
-
摘要: 为了处理互联网上大量独立于模式不规则的、零散的XML文档,提出了一种通过扫描XML文档转换为XML文档树,再对文档树进行深度遍历算法把节点映射到数据库的算法,并与其他算法做了简单比较.该算法能把XML数据内容完整地保存到数据库,还可以完全恢复.通过实例证明了算法的可行性和有效性.Abstract: For that there are a lot of independent XML documents without schema need to be processed, the authors bring about a mapping algorithm of converting from XML document to XML document tree, and then to relational database by depth-first search and makes a simple comparison with other algorithms. This algorithm could store XML data into database and restore from database integrated. The authors give an example to prove the feasibility and validity of the algorithm.