<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="DocumentElement">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" name="Item">
          <xs:complexType>
            <xs:sequence>
			<!-- (string, 32) Company code -->
              <xs:element name="Company" type="xs:string" />
			  <!-- (string, 50, optional) External code, permission identifier. Note: Must be unique -->
              <xs:element name="ExternalCode" type="xs:string" />
			  <!-- (number, optional) Approval limit -->
              <xs:element name="Limit" type="xs:decimal" />
			  <!-- (string, 100, optional) User account -->
              <xs:element name="LoginAccount" type="xs:string" />
			  <!-- (string, 1000, optional) Permission code, dimension depends on the coding row configuration -->
              <xs:element name="PermissionCode1" type="xs:string" />
			  <!-- (string, 1000, optional) Permission code, dimension depends on the coding row configuration -->
              <xs:element name="PermissionCode2" type="xs:string" />
			  <!-- (string, 1000, optional) Permission code, dimension depends on the coding row configuration -->
              <xs:element name="PermissionCode3" type="xs:string" />
			  <!-- (string, 1000, optional) Permission code, dimension depends on the coding row configuration -->
              <xs:element name="PermissionCode4" type="xs:string" />
			  <!-- (string, 1000, optional) Permission code, dimension depends on the coding row configuration -->
              <xs:element name="PermissionCode5" type="xs:string" />
			  <!-- (string, 1000, optional) Permission code, dimension depends on the coding row configuration -->
              <xs:element name="PermissionCode6" type="xs:string" />
			  <!-- (string, 1000, optional) Permission code, dimension depends on the coding row configuration -->
              <xs:element name="PermissionCode7" type="xs:string" />
			  <!-- (number, optional) Priority index -->
              <xs:element name="PriorityIndex" type="xs:unsignedInt" />
			   <!-- (number, optional) Approve iteration number -->
              <xs:element name="RowApproveIterationCount" type="xs:unsignedInt" />
			  <!-- (string, optional)  Advanced Permissions Module -->
              <xs:element name="Module" type="xs:string" />
			  <xs:element name="ExcludedValue" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>