Elements in Flat File Definition

This table lists the elements used in the example flat file definition in XML including the details such as Type, Properties, Children, Usage, and Source.

Element Type Properties Children Used by Source
Alpha xs:string content = simple DefaultEmptyFieldValueTypeDefaultPaddingType DefaultTrimType
<xs:element name="Alpha" 
	type="xs:string"/>
BankRepository content =complex Files
<xs:element name="BankRepository"> 
  <xs:complexType>
   <xs:sequence>
   <xs:element name="Files" 
          type="FilesType"/>    
   </xs:sequence>  
  </xs:complexType> 
</xs:element>
BankRepository/Files FilesType content =complexisRef = 0 File FieldType
<xs:element name="Files" 
	type="FilesType"/>
DataType restrictionofxs:string content =simple
<xs:element name="DataType">
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:enumeration value="Alpha"/>
      <xs:enumeration value="Numeric"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>
ID xs:string content =simple FileType
<xs:element name="ID" 
	type="xs:string"/>
MaxOccur xs:string content =simple
Note: 0,U, unbounded signifies unlimited occurences
GroupTypeRecordType
<xs:element name="MaxOccur" 
	type="xs:string"/>
MinOccur xs:integer content =simple GroupTypeRecordType
<xs:element name="MinOccur" 
	type="xs:integer"/>
Name xs:string content =simple FieldType GroupTypeMessageType RecordType
<xs:element name="Name" 
	type="xs:string"/>
Numeric xs:integer content =simple DefaultEmptyFieldValueTypeDefaultPaddingType DefaultTrimType
<xs:element name="Numeric" 
	type="xs:integer"/>
TagName xs:string content =simple FieldType GroupTypeMessageType RecordType
<xs:element name="TagName" 
	type="xs:string"/>
DefaultAlignmentType/Numeric restriction of xs:string content =simpleisRef = 0 DefaultEmptyFieldValueTypeDefaultPaddingTypeDefaultTrimType
<xs:element name="Numeric" 
				minOccurs="0">
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:enumeration value="RIGHT"/>
      <xs:enumeration value="LEFT"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>
DefaultAlignmentType/Alpha restriction of xs:string content =simpleisRef = 0 DefaultEmptyFieldValueTypeDefaultPaddingTypeDefaultTrimType
<xs:element name="Alpha" 
				minOccurs="0">
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:enumeration value="RIGHT"/>
      <xs:enumeration value="LEFT"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>
FieldsType/Field FieldType content =complexisRef = 0 Name, TagName, DataType, PaddingChar,Length, StartPos, Alignment, DefaultValue, Trim, EmptyFieldValue, Identifier
<xs:element name="Field" 
type="FieldType" maxOccurs="unbounded"/>
FieldType/PaddingChar xs:string content =simpleisRef = 0
<xs:element name="PaddingChar" 
	type="xs:string" minOccurs="0"/>
FieldType/Length xs:integer content =simpleisRef = 0
<xs:element name="Length" 
	type="xs:integer"/
FieldType/StartPos xs:integer content = simpleisRef = 0
<xs:element name="StartPos" 
	type="xs:integer"/>
FieldType/Alignment restriction ofxs:string content =simpleisRef = 0
<xs:element name="Alignment" 
				minOccurs="0">
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:enumeration value="RIGHT"/>
      <xs:enumeration value="LEFT"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>
FieldType/DefaultValue xs:string content =simpleisRef = 0
<xs:element name="DefaultValue" 
	type="xs:string" minOccurs="0"/>
FieldType/Trim xs:integer content =simpleisRef = 0
<xs:element name="Trim" 
	type="xs:integer" minOccurs="0"/>
FieldType/EmptyFieldValue xs:string content =simpleisRef = 0
<xs:element name="EmptyFieldValue" 
   type="xs:string" minOccurs="0"/>
FieldType/Identifier xs:string content =simpleisRef = 0
<xs:element name="Identifier" 
   type="xs:string" minOccurs="0"/>
FilesType/File FileType content =complex isRef = 0 ID Messages
<xs:element name="File" 
	type="FileType"/>
FileType/Messages MessagesType content =complex isRef = 0 Message
<xs:element name="Messages" 
	type="MessagesType"/>
GroupType/Group GroupType content =complex isRef = 0 Name, TagName, MinOccur, MaxOccur, Group, Records
<xs:element name="Group" 
	type="GroupType" 
	minOccurs="0" maxOccurs="unbounded"/>
GroupType/Records RecordsType content =complex isRef = 0 Record
<xs:element name="Records" 
	type="RecordsType" minOccurs="0"/>
MessagesType/Message extension of MessageType content =complex isRef = 0 Name, TagName, DefaultAlignment, DefaultPadding, DefaultTrim, DefaultEmptyFieldValue, EscapeChar, RecordSeparator, FieldSeparator, Records,Group
<xs:element name="Message">
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="MessageType"/>
    </xs:complexContent>
  </xs:complexType>
</xs:element>
MessageType/DefaultAlignment DefaultAlignmentType content =complex isRef = 0 Numeric,Alpha
<xs:element name="DefaultAlignment" 
	type="DefaultAlignmentType"/>
MessageType/DefaultPadding DefaultPaddingType content =complex isRef = 0 Numeric,Alpha
<xs:element name="DefaultPadding" 
	type="DefaultPaddingType"/>
MessageType/DefaultTrim DefaultTrimType content =complex isRef = 0 Numeric,Alpha
<xs:element name="DefaultTrim" 
	type="DefaultTrimType"/>
MessageType/DefaultEmptyFieldValue DefaultEmptyFieldValueType content =complex isRef = 0 Numeric,Alpha
<xs:element 
name="DefaultEmptyFieldValue" 
	type="DefaultEmptyFieldValueType"/>
MessageType/EscapeChar xs:string content =simpleisRef = 0
<xs:element name="EscapeChar" 
	type="xs:string" minOccurs="0"/>
MessageType/RecordSeparator xs:string content =simpleisRef = 0
<xs:element 
name="RecordSeparator" 
	type="xs:string"/>
MessageType/FieldSeparator xs:string content =simpleisRef = 0
<xs:element 
name="FieldSeparator" 
	type="xs:string" minOccurs="0"/>
MessageType/Records RecordsType content =complexisRef = 0 Record
<xs:element name="Records" 
	type="RecordsType" minOccurs="0"/>
MessageType/Group GroupType content =complexisRef = 0 Name, TagName, MinOccur, MaxOccur, Group, Records
<xs:element name="Group" 
	type="GroupType" 
	minOccurs="0" maxOccurs="unbounded"/>
RecordsType/Record RecordType content =complexisRef = 0 Name, TagName, MinOccur, MaxOccur, Fields
<xs:element name="Record" 
	type="RecordType" 
	maxOccurs="unbounded"/>
RecordType/Fields FieldsType content =complexisRef = 0 Field
<xs:element name="Fields" 
	type="FieldsType" 
	minOccurs="0"/>