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

anySimpleType Elements

anySimpleType Elements

An anySimpleType element can contain any atomic type. An atomic type is a basic datatype such as a Boolean, string, integer, decimal, or date.
The following schema describes a person with a first name, last name, and other element that is anySimpleType:
<xs:element name="person">    <xs:complexType>    <xs:sequence>       <xs:element name="firstname" type="xs:string"/>       <xs:element name="lastname" type="xs:string"/>       
<xs:element name="other" type="xs:anySimpleType"/>
   </xs:sequence>    </xs:complexType> </xs:element>
The following XML instance document substitutes the anySimpleType element with a string datatype:
<person>    <firstname>Kathy</firstname>    <lastname>Russell</lastname>    
<other>Cissy</other>
</person>
The following XML instance document substitutes the anySimpleType element with a numeric datatype:
<person>    <firstname>Kathy</firstname>    <lastname>Russell</lastname>    
<other>34</other>
</person>

0 COMMENTS

We’d like to hear from you!