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

Normalized Views

Normalized Views

When the Designer generates a normalized view, it establishes the root element and the multiple-occurring elements that become views in an XML definition.
The following figure shows a DTD file and the elements that become views in a normalized XML definition:
The elements include store, address, product, employee and sales.
Store is the root element. Address, product, employee, and sales are multiple-occurring elements.
The following figure shows a source definition based on the DTD file from the figure above:
The XML definition includes the properties Name, XPath, and Datatype. The Name and XPath properties list the store, address, product, employee, and sales element data. The Datatype property lists the multiple-occurring elements, such as xsd:integer and xsd:string.
The definition has normalized views. The root view is Store. The Address, Product, and Sales views have foreign keys to Store. The Sales view has a foreign key to the Product view.
The following table shows the rows in a data preview for the Store view:
XPK_si_STORE
si_SID
si_NAME
1
BE1752
Mud and Sawdust Furniture Store
The following table shows the rows in a data preview for the Address view:
XPK_si_ADDRESS
FK_si_ADDRESS
si_STREETADDRESS
si_CITY
si_STATE
si_ZIP
1
1
335 Westshore Road
Fausta City
CA
95784
2
1
7415 Endless Loop
Codeville
CA
97412
The following table shows the rows in a data preview for the Product view:
XPK_si_PRODUCT
FK_si_PRODUCT
si_PNAME
si_PRICE
si_PID
1
1
Chair
5690.00
a1
1
1
Table
1240.00
a2
1
1
Bed
1364.99
a3
The following table shows the rows in a data preview for the Sales view:
XPK_si_SALES
FK_si_SALES
si_REGION
si_YTDSALES
1
a1
Northwest
4565.44
2
a2
South
8793.99
3
a3
East
23110.00
4
a4
South
5500.00
5
a5
Northwest
10095.34
6
a6
East
200.00
The following table shows the rows in a data preview for the Employee view:
XPK_si_EMPLOYEE
FK_si_EMPLOYEE
si_FIRSTNAME
si_LASTNAME
1
1
James
Bond
2
1
Austin
Powers
3
1
Indiana
Jones
4
1
Foxie
Brown
5
1
Bonnie
Bell
6
1
Laura
Croft

0 COMMENTS

We’d like to hear from you!