XMLXQuery Exploder.
Uses XQuery expression to extract portions of XML text into new FME features.
Parameters
XQuery类型
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
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
- 直接指定 - XQuery表达式,
- 特征上的属性 - 指定XQuery的属性,或
- a path to a file – XQuery file.
XML源码
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
This parameter identifies either an attribute that contains an XML document (XML Attribute), or specifies a file that contains an XML document (XML文件). You can set this parameter toNone (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).
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
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.
Results
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Write XML Header参数指定XML标头是否应写入XQuery的结果。请注意,对于Unicode文件,未写入字节顺序标记(BOM),如果需要,应通过附加过程添加。
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
This parameter determines the attribute to which the XQuery results will be written. It is used only when the XML document is an attribute.
对于结果集中的每个元素,将输出功能QueryResults端口具有结果的值设置为此参数指定的属性。
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
如果设置了此属性,则查询的文本将写入指定的属性。默认为_source_query.
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.
SeeXQuery函数。
例子
编辑变换器参数
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅变换器参数菜单选项.
变压器类别
FME Licensing Level
FME Professional edition and above
Search FME Knowledge Center
Search for samples and information about this transformer on theFME Knowledge Center.