FME Transformers: 2024.1

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 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 all results about the XMLNamespaceDeclarer on the FME Community.