Data Transformation Engine Type Tree Importers Reference Guide

Chapter 2 - Using the Importer Wizard XML Schema Importer
Type Tree Importers Reference Guide
52
The Person element’s type contains a sequence of elements, represented by the
Comp category. This category has two child nodes that represent the two
sequence member elements: Name, and Address.
The Name element is of simple text type. For this reason it is represented by the
Name item in the type tree.
The Address element is of complex type. This complex type name is also
Address.
The element is represented with the Address category. If you look at
ElementDecl group for this element, notice that it contains the TypeDef group of
the Address type. This is done to make the type tree shorter and to reuse the
existing definition of the global types in the type tree.
ElementDecl group of the Person element represents the entire content of the
Person element which includes Person’s attributes (AttrList) as well as Person’s
subelements (Seq).
Doc Group
The Doc group represents the whole XML instance document.
This includes the Prolog of the document and the top-level element of the
instance document – ElementDecl group of the Person element.
In this example, only one global element is declared in the schema - Person. For
that reason it is directly included in the Doc group. If more than one global
element was declared in the schema, a choice group named Global would be
defined as a choice selection for the elements because the XML instance document
must have only one root element. In that case, this Global group would be
included in the Doc group along with the Prolog.