【24h】

Merge XML Documents

机译:合并XML文件

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

ML is becoming an increasingly common data store. One of XML's advantages is that you can work with your data as discrete files that might come from different sources. You might also want to merge XML files to create reports, store the output in a database, or display it in a user interface. I'll show you how to do an intimate merge between discrete XML data files. I call it an intimate merge because it not only adds new elements, but it updates individual elements' attributes as well. Along the way, you'll get a better understanding of the role of XML Schema Definition (XSD) schemas, how to validate an XMLDocument object as you load it, and the role of recursion in processing XML data. You might use this merging process in the real world by taking data from several external sources, such as a database, output from an accounting package such as QuickBooks, and the results of a Web-based survey (see Figure 1). I'll simplify the example to use data from the Customers and Orders tables from the SQL Server sample Northwind database and merge it with a file that mimics the result of a Web-based satisfaction survey. You can extend the approach to whatever data you work with.
机译:ML正在成为越来越普遍的数据存储。 XML的优点之一是您可以将数据作为离散文件使用,这些文件可能来自不同的来源。您可能还希望合并XML文件以创建报告,将输出存储在数据库中或在用户界面中显示。我将向您展示如何在离散的XML数据文件之间进行紧密合并。我称其为紧密合并,因为它不仅添加了新元素,而且还更新了单个元素的属性。在此过程中,您将更好地理解XML架构定义(XSD)架构的角色,如何在加载XMLDocument对象时对其进行验证以及递归在处理XML数据中的角色。您可能会在现实世界中使用此合并过程,方法是从多个外部来源(例如数据库)中获取数据,从记帐包(例如QuickBooks)中获得输出以及基于Web的调查结果(请参见图1)。我将简化示例,以使用来自SQL Server示例罗斯文数据库的“客户”和“订单”表中的数据,并将其与模仿基于Web的满意度调查结果的文件合并。您可以将方法扩展到使用的任何数据。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号