FME Transformers: 2024.2

Categories
Format Specific
Web

Web

XMLNamespaceDeclarer

Declares missing namespaces in XML documents by matching prefixes from another sample XML file whose namespaces are fully declared.

Example

<root>

<f:element1>

<f:element2> some text </f:element2>

<f:element3> some text </f:element3>

</f:element1>

</root>

and the sample XML file:

<root>

<f:element1 xmlns:f="http://www.w3schools.com/example">

<f:element2 xmlns:f=" http://www.w3schools.com/example"> some text </f:element2>

<f:element3 xmlns:f=" http://www.w3schools.com/example"> some text </f:element3>

</f:element1>

</root>

the output will look like this:

<root>

<f:element1 xmlns:f="http://www.w3schools.com/example">

<f:element2> some text </f:element2>

<f:element3> some text </f:element3>

</f:element1>

</root>

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

Search for all results about the XMLNamespaceDeclarer on the FME Community.