Schema Definition for userArea

The userArea element can be used for any non-Common Services specific information the user wants to define. The following example has the userArea element.
<?xml version="1.0" encoding="UTF-8"?>
<destinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
              xsi:noNamespaceSchemaLocation="RoutingFileSchema.xsd">
  <destRouting routingNum="123456789">
    <icpcsRouting>
      <routingMode>FILE</routingMode>
      <routingDir>routingDir</routingDir>
      <FileSizeWarning>1500000000</FileSizeWarning>
      <FileSizeError>2000000000</FileSizeError>
      <Type54Records>Exclude</Type54Records>
      <Type27Records>Exclude</Type27Records>
      <Type34Records>Exclude</Type34Records>
      <viewsToInclude>
        <viewValue>FGS</viewValue>
        <viewValue>RBW</viewValue>
      </viewsToInclude>
      <characterEncoding>ASCII</characterEncoding>
    </icpcsRouting>
    <userArea>
      <fileSuite></fileSuite>
      <dtmReceiptDate></dtmReceiptDate>
      <dtmReceiptTime></dtmReceiptTime>
      <frbAppdId></frbAppdId>
      <frbOrigRT></frbOrigRT>
      <issQueryType></issQueryType>
      <issQueryMaxHits></issQueryMaxHits>
      <vectorRegionNumber></vectorRegionNumber>
      <eadInfo>
        <FileType></FileType>
        <Retention></Retention>
        <DeliveryMethod></DeliveryMethod>
      </eadInfo>
      <irdInfo>
         <AuthoringLocation></AuthoringLocation>
         <DocType></DocType>
         <DeliveryMethod></DeliveryMethod>
         <Printer></Printer>
         <Destination></Destination>
         <SpecialInstructions></SpecialInstructions>
      </irdInfo>
    </userArea>
  </destRouting>
  <destRouting routingNum="111222333">
    <icpcsRouting>
      <outgoing>
        <routingMode>FTP</routingMode>
        <FTPaddress>127.0.0.1</FTPaddress>
        <FTPpath>/target/path</FTPpath>
        <FTPuserID>userid</FTPuserID>
        <FTPpassword>pw</FTPpassword>
        <FileSizeWarning>0</FileSizeWarning>
        <FileSizeError>2000000000</FileSizeError>
        <Type54Records>Include</Type54Records>
        <Type27Records>Exclude</Type27Records>
        <Type34Records>Exclude</Type34Records>
        <viewsToInclude>
          <viewValue>FBW</viewValue>
          <viewValue>RGS</viewValue>
        </viewsToInclude>
        <characterEncoding>EBCDIC</characterEncoding>
      </outgoing>
    </icpcsRouting>
    <userArea>userArea</userArea>
  </destRouting>
</destinations>
An XML schema should be developed for any non-Common Services information. This enables the XML parser to validate the user’s information. If the user develops a schema called RoutingFileUserSchema.xsd, it is included in the XML declaration line as follows:
<destinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:SchemaLocation="RoutingFileSchema.xsd
              RoutingFileUserSchema.xsd">
XML parsers would now use both schema files, RoutingFileSchema.xsd and RoutingFileUserSchema.xsd, to validate the content of the XML routing file. The following XML schema could be used to validate the userArea element:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:element name="userArea">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="fileSuite" type="xsd:string" 
                     maxOccurs="unbounded" minOccurs="1"/>
        <xsd:element name="dtmReceiptDate" type="xsd:string" 
                     maxOccurs="unbounded" minOccurs="0"/>
        <xsd:element name="dtmReceiptTime" type="xsd:string" 
                     maxOccurs="unbounded" minOccurs="0"/>
        <xsd:element name="frbAppdId" type="xsd:string" 
                     maxOccurs="unbounded" minOccurs="0"/>
        <xsd:element name="frbOrigRT" type="xsd:string" 
                     maxOccurs="unbounded" minOccurs="0"/>
        <xsd:element name="issQueryType" type="xsd:string" 
                     maxOccurs="unbounded" minOccurs="0"/>
        <xsd:element name="issQueryMaxHits" type="xsd:string" 
                     maxOccurs="unbounded" minOccurs="0"/>
        <xsd:element name="vectorRegionNumber" type="xsd:string" 
                     maxOccurs="unbounded" minOccurs="0"/>
        <xsd:element ref="eadInfo"/>
        <xsd:element ref="irdInfo"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:element name="eadInfo">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="FileType" 
                     type="xsd:string" minOccurs="0"/>
        <xsd:element name="Retention" 
                     type="xsd:string" minOccurs="0"/>
        <xsd:element name="DeliveryMethod" 
                     type="xsd:string" minOccurs="0"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:element name="irdInfo">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="AuthoringLocation" 
                     type="xsd:string" minOccurs="0"/>
        <xsd:element name="DocType" 
                     type="xsd:string" minOccurs="0"/>
        <xsd:element name="DeliveryMethod" 
                     type="xsd:string" minOccurs="0"/>
        <xsd:element name="Printer" 
                     type="xsd:string" minOccurs="0"/>
        <xsd:element name="Destination" 
                     type="xsd:string" minOccurs="0"/>
        <xsd:element name="SpecialInstructions" 
                     type="xsd:string" minOccurs="0"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>