Using Namespaces in an XML Output File
Namespaces allow you to have duplicate element and attribute names in your output by assigning each element or attribute to an XML namespace.
- In Spectrum Enterprise Designer, open the dataflow.
- Double-click the Write to XML stage on the canvas.
- Click the Fields tab.
-
Define one ore more namespaces:
- In the Prefix column, enter the prefix you want to use to associate an element or attribute with the namespace.
- In the Namespace column, specify the URL of the namespace.
- Repeat to define as many namespaces as you want to use for the output XML file.
-
Associate one or more elements or attributes to the namespace.
- On the Fields tab, select the element or attribute you want to associate with a namespace then click Modify, or create a new element or attribute by clicking Add.
- In the Namespace field, choose the namespace prefix you want to associate with the element or attribute.
- Click OK.