XMLXQueryExtractor
Uses XQuery expressions to extract portions of XML text into feature attributes.
Parameters
XQuery Type
This parameter identifies the type of the XQuery to be executed. The possible values each correspond to ways of specifying the XQuery. It can be
- directly specified – XQuery expression
- an attribute on a feature – Attribute specifying an XQuery
- a path to a file – XQuery file
XML Source
This parameter identifies either an attribute that contains an XML document (XML属性), or specifies a file that contains an XML document (XML File)。您可以将此参数设置为None (file is specified in query)if the XQuery parameter above refers to an XML file. If this parameter is set, the context document for the query will be set to the value of the parameter (either as a file or a string, as appropriate).
If the XML document is loaded from an attribute, the Remove Source XML Attribute parameter can be set to remove the XML document after the query has been processed.
结果
The Write XML Header parameter specifies whether or not the XML header should be written into the results of the XQuery. Note that for UNICODE files, the Byte Order Mark (BOM) is not written, and should be added by an additional process if desired.
TheResult Attribute参数确定将写入哪个属性XQuery结果。
If theReturn Value被设定为Separated Values,the results will be written out as a delimited string, with the separator character determined by the value set forSeparator Character(s). If theReturn Value被设定为Single value,the results will be concatenated. If theReturn Value被设定为List Attribute, each result will be written out to an element of the list specified by theList Result Attributeparameter.
暴露任何属性,以便其他变换器可以使用它们。直接在文本框中输入或单击“浏览”按钮以显示编辑器并在那里添加属性。
XQuery Functions
FME provides several functions that can be used within XQuery scripts. These functions allow XQuery scripts to access and manipulate feature attribute values. Currently, there are no functions that allow the manipulation of feature geometry.
Examples
Editing Transformer Parameters
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, seeTransformer Parameter Menu Options.
Transformer Categories
FME Licensing Level
FME Professional edition and above
搜索FME知识中心
搜索有关此变压器的样本和信息FME Knowledge Center.