<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/FileParserConfiguration" xmlns:tns="http://www.example.org/FileParserConfiguration" elementFormDefault="qualified">
  
  
  <element name="configuration" type="tns:FileParserConfiguration"></element>
    
    
    <complexType name="FileParserConfiguration">
        <annotation>
        	<documentation>The parser's Parsing Configuration.
Here you have to define all sections of the document/log file to be parsed
and all parsing tokens (in other words lines of interest) within each section.</documentation>
        </annotation>
        <sequence maxOccurs="unbounded" minOccurs="1">
        	<element name="fileParser" type="tns:DirectoryConfiguration"
        		maxOccurs="unbounded" minOccurs="1">
        	</element>
        	<element name="jdbcDataSourceName" type="tns:JdbcDataSource"></element>
        </sequence>
        <attribute name="version" type="string">
    		<annotation>
    			<documentation>The parser's Parsing Configuration. Here you have to define all sections of the document/log file to up</documentation>
    		</annotation></attribute>
    	<attribute name="author" type="string"></attribute>
    	<attribute name="date" type="date"></attribute>
    	<attribute name="comment" type="string"></attribute>
    </complexType>

    <complexType name="DirectoryConfiguration">
    	<attribute name="processName" type="string" use="required"
    		default="LogGuardFileParser">
            <annotation>
            	<documentation>This MUST be filled. This is stored in the LogGuard Database as the the System Id that generated the log results.</documentation>
            </annotation>
    	</attribute>
    	<attribute name="configFile" type="string" use="required"></attribute>
    	<attribute name="inputDirectory" type="string" use="required"></attribute>
    	<attribute name="outputDirectory" type="string"
    		use="required">
    	</attribute>
    	<attribute name="extendedDirectory" type="string"
    		use="required">
    	</attribute>
    	<attribute name="pendingDirectory" type="string"
    		use="required">
    	</attribute>
    	<attribute name="logDirectory" type="string" use="required"></attribute>
    	<attribute name="errorDirectory" type="string" use="required"></attribute>
    	<attribute name="inputFilePrefix" type="string"></attribute>
    	<attribute name="inputFileSuffix" type="string"></attribute>
    	<attribute name="inputFileLength" type="int" use="optional"></attribute>
    	<attribute name="extendedFileSuffix" type="string" use="optional"></attribute>
    	<attribute name="pendingFileSuffix" type="string" use="optional"></attribute>
    	<attribute name="jdbcDataSourceName" type="string" use="optional"></attribute>
    </complexType>



    <complexType name="JdbcDataSource">
    	<attribute name="name" type="string" use="required"></attribute>
    	<attribute name="type" use="required" type="tns:TDbmsType">
    	</attribute>
    	<attribute name="connectionString" type="string" use="required"></attribute>
    	<attribute name="user" type="string" use="required"></attribute>
    	<attribute name="password" type="string" use="required"></attribute>
    </complexType>

    <simpleType name="TDbmsType">
    	<restriction base="string"></restriction>
    </simpleType>
</schema>
