You are here: Web > XMLFlattener

XMLFlattener

Flattens content of XML element(s) into feature attributes.

This transformer provides a quick and easy way to output any content or attributes of an XML element as feature attributes by specifying the element name or path. Optionally, the XML attributes from the ancestors of the specified elements can be fetched as FME attributes as well.

The XMLFlattener does not currently support multiple matches, so for generation of multiple features from the source XML, please use the XMLFragmenter.

Input Ports

Output Ports

Parameters

XML Source

Selecting from the list enables that selection's corresponding parameter:

Flatten Paths

This parameter specifies which elements to flatten. The Flatten Paths are whitespace-separated xfMap match expressions or each expression can be specified on a new line. For more information, see the FME Readers/Writers manual: XML (Extensible Markup Language) Reader/Writer > xfMap.

Customize Attributes

Expose Attributes

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

Format Specific

Web

Search FME Knowledge Center

Search for samples and information about this transformer on the FME Knowledge Center.