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.

  1. In Enterprise Designer, open the dataflow.
  2. Double-click the Write to XML stage on the canvas.
  3. Click the Fields tab.
  4. Define one ore more namespaces:
    1. In the Prefix column, enter the prefix you want to use to associate an element or attribute with the namespace.
    2. In the Namespace column, specify the URL of the namespace.
    3. Repeat to define as many namespaces as you want to use for the output XML file.
  5. Associate one or more elements or attributes to the namespace.
    1. 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.
    2. In the Namespace field, choose the namespace prefix you want to associate with the element or attribute.
    3. Click OK.