首页> 外国专利> Efficient evaluation for diff of XML documents

Efficient evaluation for diff of XML documents

机译:有效评估XML文档的差异

摘要

A technique for differencing XML documents is provided. An edit graph is generated for computing the cost of possible edits that may be applied to a first XML document in order to generate a second XML document. A hash value is assigned to nodes included in the axes of the edit graph, where one axis includes nodes in the first XML document and the other axis includes nodes in the second XML document. The hash value may be generated based on a particular node's name and attributes, and the hash value of the name and attributes of each child node of the particular node. A technique for patching an XML document is also provided. Events are generated for each node in the input document and for at least one operation specified in the edit script. The edit script is applied to the input document by performing one or more operations specified in the operation events on one or more node events.
机译:提供了一种用于区分XML文档的技术。生成用于计算可能的编辑成本的编辑图,该编辑可能会应用于第一XML文档以生成第二XML文档。将哈希值分配给包括在编辑图的轴中的节点,其中一个轴包括第一XML文档中的节点,另一个轴包括第二XML文档中的节点。可以基于特定节点的名称和属性以及该特定节点的每个子节点的名称和属性的哈希值来生成哈希值。还提供了一种修补XML文档的技术。将为输入文档中的每个节点以及在编辑脚本中指定的至少一个操作生成事件。通过对一个或多个节点事件执行操作事件中指定的一个或多个操作,将编辑脚本应用于输入文档。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号