Powercenter - Xml Source

Card Puncher Data Processing

About

How to create an Xml source

How to import the XML source

To import the XML source definition:

  • Open the designer if it is not already open, connect to the repository
  • Click Sources > Import XML Definition.
  • Click Advanced Options. The Change XML Views Creation and Naming Options dialog box opens.
  • Configure all options and click OK to save the changes.
  • In the Import XML Definition dialog box, navigate to the xsd file. Click Open. The XML Definition Wizard opens.
  • Verify that the name for the XML definition is good, and click Next.
  • Select the XML definition creation option.

If you only need to work with a few elements and attributes in the xsd file, you can skip creating a definition using the XML Wizard. Instead, you create a custom view in the XML Editor. With a custom view in the XML Editor, you can exclude the elements and attributes that you do not need in the mapping. When you skip creating XML views, the PowerCenter - Designer imports metadata into the PowerCenter - Repository, but it does not create the XML view. You have to use the PowerCenter - Xml Editor to add groups and columns to the XML view.

To edit the XML definition

  • First, import the definition of the Xml
  • Double-click the XML definition or right-click the XML definition and select Edit XML Definition to open the PowerCenter - Xml Editor.

Powercenter Xml Import Edition

  • In the menu, Click XMLViews > Create XML View to create a new XML view.
  • Choose Show XPath Navigator from an element
  • From the XPath Navigator, select the elements and attributes and drag them into the new view:

To pivot

  • To pivot a column, click the Mode icon on the XPath Navigator, and choose Advanced Mode.
  • Drag the column into the new XML view to create the pivoted columns.

Although the new columns appear in the column window, the view shows one instance of the column

  • The wizard adds the new columns in the column view
  • Rename the new columns.

Powercenter Xml Editor

  • Click File > Apply Changes to save the changes to the view.
  • Click File > Exit to close the XML Editor.
  • The modified source definition appears in the Source Analyzer.

The pivoted columns do not display the names you entered in the Columns window. However, when you drag the ports to another PowerCenter - Transformations, the edited column names appear in the transformation.

  • Click Repository > Save to save the changes to the XML definition.





Discover More
Card Puncher Data Processing
PowerCenter - Xml

XML is a common means of exchanging data on the web. Use XML files as a source of data and as a target for transformed data. The designer represents an XML hierarchy in an XML definition as a set of views....
Card Puncher Data Processing
PowerCenter - Xml Source Qualifier Transformation

Xml Source Qualifier is a transformation that represents the rows that the Integration Service reads from an XML source when it runs a workflow.



Share this page:
Follow us:
Task Runner