Table of Contents

Search

  1. Preface
  2. XML Concepts
  3. Using XML with PowerCenter
  4. Working with XML Sources
  5. Using the XML Editor
  6. Working with XML Targets
  7. XML Source Qualifier Transformation
  8. Midstream XML Transformations
  9. Appendix A: XML Datatype Reference
  10. Appendix B: XPath Query Functions Reference

XML Guide

XML Guide

Updating a Namespace

Updating a Namespace

When you create an XML definition, you can change the namespace prefix and schema location in the XML Editor. You can also add a schema to the namespace.
If you create a target XML definition that has one or more namespaces, you can choose a default namespace. When you run a session, the Integration Service writes the elements and attributes from the default namespace without a namespace prefix.
Do not use “xml” or “xmlns” as a namespace prefix. An “xml” prefix points to the
http://www.w3.org/XML
namespace by default. “Xmlns” links elements to namespaces in an XML schema.
You cannot add a namespace using the XML Editor.
To update a namespace:
  1. Select an element in the Navigator.
  2. Click the Properties tab.
  3. Click the Namespace link.
    The Edit Namespace Prefix and Schema Location dialog box appears.
  4. To change the prefix or schema location, select the text you want to change and enter the new value.
  5. To add more than one schema to a namespace, select a schema location and click Add.
    A blank schema appears in the namespace Schema Location.
  6. To delete a schema, highlight the schema location and click Delete.
  7. To create a default namespace in the XML target, select a namespace.
    All the components from the namespace you select belong to the default namespace in the XML target. When you run a session, the Integration Service does not write the default namespace prefix in the XML target file.

0 COMMENTS

We’d like to hear from you!