XMLXQueryUpdater
Provides updates to an XML document using XQuery Update expressions.
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 Attribute), or specifies a file that contains an XML document (XML File). You can set this parameter to 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).
Results
The parameter determines which attribute the XQuery results will be written to. It is used only when the XML document is an attribute.
For every element in the result set, a feature will be output the QueryResults port with the value of the result set to the attribute specified by this parameter.
When the query operates directly on a file, the update will occur on the file itself, and no features will be produced. If this is not the desired result, you can read the file using an AttributeFileReader transformer and pass that feature into the XQueryUpdater transformer.
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, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
FME Licensing Level
FME Professional edition and above
Technical History
Associated FME function or factory: XQueryFactory
Search FME Community
Search for samples and information about this transformer on the FME Community.