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. XML Datatype Reference
  10. XPath Query Functions Reference

XML Guide

XML Guide

Importing anyType Elements

Importing anyType Elements

You can import an XML schema that contains an anyType element. An element of type anyType can contain any datatype that occurs in an XML document. For example, the following section of an XML schema includes an element Document that is anyType:
<?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="Publication" type="xsd:string"/> <xsd:element name="Date" type="xsd:string"/> <xsd:element name="Document" type="xsd:
anyType
"/>
When you import a schema with an anyType element, the anyType element appears in the Schema Navigator as anyType. The Designer does not create a port for an element of the type anyType.
You must change the anyType element to a global complex type in the Designer to use the anyType element in PowerCenter.
To change an anyType element to another global complex type:
  1. Highlight the anyType element in the Schema Navigator.
    The anyType property appears in the Properties tab of the Schema Navigator.
  2. Click the anyType property.
    If the schema does not contain a global complex type, the Designer displays an error that there are no global complex types to choose from.
  3. Select a complex type and click OK.

0 COMMENTS

We’d like to hear from you!