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 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).
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
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.
The Result Attribute parameter determines which attribute the XQuery results will be written to.
If the Return Value is set to Separated Values, the results will be written out as a delimited string, with the separator character determined by the value set for Separator Character(s). If the Return Value is set to Single value, the results will be concatenated. If the Return Value is set to List Attribute, each result will be written out to an element of the list specified by the List Result Attribute parameter.
Exposes any attributes so they can be used by other transformers. Type directly in the text box or click the browse button to display the editor and add attributes there.
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
FME Community
The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.
Search for samples and information about this transformer on the FME Community.