你在这里: 网页 > XMLUpdater

XMLUpdater

这个变压器modifies XML documents通过执行以下一个或多个操作:

  • 替换XML元素或属性。
  • 代替the contents of an element or attribute.
  • 删除XML元素或属性。
  • 删除the contents of an XML element or attribute.
  • 重命名元素或属性
  • 插入新元素或属性。

For each document update, an XML path expression is used to identify the location of the items to be modified. Note that the path may refer to more than one item. If this is the case, all the items will be modified.

对于替换现有项目或插入新项目的修改,给出了两个参数,其中指定要添加到文档的值。该值可以作为简单的文本值给出,或者它可能是一个XQuery表达。

Update功能提供文档更新操作中使用的属性值。这Documentfeature is only used to supply the XML document which is to be updated.

For each feature that enters theUpdate端口,变压器中列出的所有更新操作将应用于通过的每个功能通过Document港口。这refore, no changes will be made to the XML document if no features enter the transformer through theUpdate港口

请注意,如果将文档直接输入到变压器参数中,则可以以两种不同的方式处理它:

  • If noDocument功能将提供给变换器,将创建一个新功能以存储文档。每个更新都将应用于文档,然后将输出通过Document港口。
  • IfDocument特征给变压器,每个更新都将应用于文档,然后将复制到每个文件Documentinput feature before these features are output from the transformer.

Input Ports

Output Ports

参数

XML文档

Updates

参数

编辑变压器参数

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, clickbeside the applicable parameter. For more information, see变换器参数菜单选项

变压器类别

格式特定于格式

网页

Search FME Knowledge Center

Search for samples and information about this transformer on theFME知识中心