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

Applying Content to anyAttribute or ANY Elements

Applying Content to anyAttribute or ANY Elements

You can import an XML schema that contains the anyAttribute, or ANY content element. To use the element in a view, you must define content for the element in the XML Editor. When you import a schema with an anyAttribute or ANY content element, the element appears in the Schema Navigator with no properties. The element does not appear in a view.
For example, the following schema element includes ANY content:
<xs:element name="person">    <xs:complexType>    <xs:sequence>       <xs:element name="firstname" type="xs:string"/>       <xs:element name="lastname" type="xs:string"/>       <xs:
any
minOccurs="0"/>    </xs:sequence>    </xs:complexType> </xs:element>
To apply content to anyAttribute or ANY content:
  1. Click the element content link in the Schema Navigator.
    The Edit Any or anyAttribute Type Content dialog box appears.
  2. Click Add Type.
    A new row appears.
  3. Choose an element from the list of valid elements in the schema for the XML definition.
  4. Select a cardinality and click OK.
    The substituted type appears in the Schema Navigator.

0 COMMENTS

We’d like to hear from you!