<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:CPR="http://www.dir.ca.gov/dlse/CPR-Prod-Test/CPR.xsd"
           targetNamespace="http://www.dir.ca.gov/dlse/CPR-Prod-Test/CPR.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <!--XML SCHEMA for electronic California Payroll Records Version 1.3-->
  <!--added NOTES section in payroll under employee-->
  <!--added contractAgencyID-->
  <!--projectID is now required-->
  <xs:element name="eCPR">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="contractorInfo">
          <xs:annotation>
            <xs:documentation>
              This element contains information of the contractor or company that is legally responsible for this payroll.
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="contractorName">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the name of the contractor or company that is legally responsible for this payroll.
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:minLength value="1"/>
                    <xs:maxLength value ="56"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="contractorLicense">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the license type and license number of the contractor or company that is legally
                    responsible for this payroll.
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="licenseType">
                      <xs:annotation>
                        <xs:documentation>
                          This element contains the license type. CSLB stands for Contractor's State License Board.
                          PL stands for Professional License. If your license type is not one of the two, please
                          fill this field with OTHER.
                        </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:pattern value="CSLB|PL|OTHER"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="licenseNum">
                      <xs:annotation>
                        <xs:documentation>
                          This element contains the license number of previous element type. If the previous element
                          field is OTHER, please enter your license type and license number inside the licenseNum element tag.
                          <!-- For example: <licenseNum>California Motor Carrier Permit: 0123456 </licenseNum> -->
                        </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value ="56"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="contractorPWCR">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the 10 digit PWCR(Public Works Contractor Registration) number of the contractor or company
                    that is legally reponsible for this payroll. If you have not registered for PWCR, please do so as soon as
                    possible. For more information, visit http://www.dir.ca.gov/Public-Works/PublicWorks.html
                    Please enter NA if you do not have the PWCR number.
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:pattern value="[0-9]{10}|NA"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="contractorFEIN">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the FEIN(Federal Employer Identification Number) of the contractor or company
                    that is legally responsible for this payroll. This is the 9 digit number that companies with two or
                    more employees are required to have. If you are a sole proprietor or owner operator without a FEIN,
                    please enter your 9 digit social security number. For example: 234556789
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:pattern value="[0-9]{9}"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="contractorAddress">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the information of the contractor's address in sequence.
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="street">
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value ="40"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="city">
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value ="25"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="state">
                      <xs:annotation>
                        <xs:documentation>
                          This element contains the state of the contractor's address.
                          String format must be two uppercase letters of the state abbreviation.
                          For example: CA
                        </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:pattern value="[A-Z]{2}"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="zip">
                      <xs:annotation>
                        <xs:documentation>
                          This element contains the zip code of the contractor's address.
                          String format must be a 5 digit number. For example: 94612
                        </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:pattern value="[0-9]{5}"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="insuranceNum">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the insurance information. Please enter either the worker's compensation
                    policy number or the self insurance certificate number. Please enter NA if you are not required
                    to hold workers' compensation insurance or self insurance certificate.
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:minLength value="1"/>
                    <xs:maxLength value ="40"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="contractorEmail">
                <xs:annotation>
                  <xs:documentation>
                    This element contains contractor's email address. String format must match email pattern
                    standards. For example, John@broadway.com
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:pattern value="[^@]+@[^\.]+\..+"/>
                    <xs:minLength value="1"/>
                    <xs:maxLength value ="60"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="projectInfo">
          <xs:annotation>
            <xs:documentation>
              This element contains the project's information in sequence. The required fields to be filled out
              are contractAgency, awardingBodyID, projectNum, and contractID. The later three pieces of information
              will be used to search in the PWC-100 database for other element values. If you provide a projectID, it
              will be used in priority of the search. Please make sure you provide the correct projectID or
              awardingBodyId, projectNum, and contractID. The other element fields are fixed to be empty.
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="awardingBody" fixed=""/>
			  <xs:element name="contractAgencyID" fixed="">
                <xs:annotation>
                  <xs:documentation>
                    This element serves as a placeholder for contractAgencyID. please leave the values empty.
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="contractAgency">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the name of the agency or contractor you are in direct contract with.
                    This is the contract With element on the online form.
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:minLength value="1"/>
                    <xs:maxLength value ="56"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="projectName" fixed=""/>
              <xs:element name="projectID">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the DLSE project identification number for a given PWC-100 registered public
                    works project. If you do not have this number, please enter valid awardingBodyId, projectNum, and
                    contractID so the system can properly look up the registered PWC-100 public project.
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:pattern value="[0-9]{1,18}"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="awardingBodyID">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the identification number of the public entity that is the owner of the project.
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:minLength value="0"/>
                    <xs:maxLength value ="9"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="projectNum">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the project number given by the awardingBody on a specific project.
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:minLength value="0"/>
                    <xs:maxLength value ="50"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="contractID">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the contract identification number given by the awardingBody on a specific project.
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:minLength value="0"/>
                    <xs:maxLength value ="25"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="projectLocation">
                <xs:annotation>
                  <xs:documentation>
                    This element serves as a placeholder for project location. Please leave the values empty.
                    <!-- for example: <description/> or <description></description> -->
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="description" fixed=""/>
                    <xs:element name="street" fixed=""/>
                    <xs:element name="city" fixed=""/>
                    <xs:element name="county" fixed=""/>
                    <xs:element name="state" fixed=""/>
                    <xs:element name="zip" fixed=""/>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="payrollInfo">
          <xs:annotation>
            <xs:documentation>
              This element contains information on employees and payrolls in sequence.
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="statementOfNP">
                <xs:annotation>
                  <xs:documentation>
                    This element contains information on Statement of Non-Performance. Please enter
                    true if this is a statement of non performance, and false if it is not. If this
                    is a statement of non performance, please do not include any employee elements and vice
                    versa.
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:pattern value="true|false"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="payrollNum" fixed="">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the payroll number. This number refers to the number in sequence
                    of the payroll submitted by a contractor on a project on a week ending date. It is
                    auto incremented by the system.
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name ="amendmentNum" fixed="">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the amendment number. This number refers to the number in sequence
                    of the payroll submitted by a contractor on a project on a same week ending date. It is
                    auto incremented by the system.
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="forWeekEnding">
                <xs:annotation>
                  <xs:documentation>
                    This element contains the ending date of the payroll week for this public project. A payroll week
                    is defined as a seven-day work period. Date format is yyyy-mm-dd. For example: 2014-12-25
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:date"/>
                </xs:simpleType>
              </xs:element>
              <xs:element name="employees">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="employee" nillable="true" minOccurs="0" maxOccurs="500">
                      <xs:annotation>
                        <xs:documentation>
                          This element contains this worker's information in sequence. If this is a statement of non performance,
                          please do not include this element. In that case, your payrollInfo element should only contain the statementOfNP
                          element value of true, payrollNum element, forWeekEnding element and an empty employees tag.
                          <!--For Example: <employees></employees> or <employees/>-->
                        </xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="name">
                            <xs:annotation>
                              <xs:documentation>
                                This element contains this worker's name. Please include an attribute id="SSN::NAME"
                                where SSN must match the ssn of given worker, and NAME = name of worker in uppercase
                                <!-- For Example: <name id="123456789::JOHN SMITH">John Smith</name> -->
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:simpleContent>
                                <xs:extension base="xs:string">
                                  <xs:attribute name="id" type="xs:string">
                                  </xs:attribute>
                                </xs:extension>
                              </xs:simpleContent>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="address">
                            <xs:annotation>
                              <xs:documentation>
                                This element contains the address of this worker in sequence.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="street">
                                  <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                      <xs:minLength value="1"/>
                                      <xs:maxLength value ="40"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="city">
                                  <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                      <xs:minLength value="1"/>
                                      <xs:maxLength value ="25"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="state">
                                  <xs:annotation>
                                    <xs:documentation>
                                      This element contains the state of this worker's address.
                                      String format must be two uppercase letters of the state abbreviation.
                                      For example: CA
                                    </xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                      <xs:pattern value="[A-Z]{2}"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="zip">
                                  <xs:annotation>
                                    <xs:documentation>
                                      This element contains the zip code of this worker's address.
                                      String format must be a 5 digit number. For example: 94612
                                    </xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                      <xs:pattern value="[0-9]{5}"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="ssn">
                            <xs:annotation>
                              <xs:documentation>
                                This element contains this worker's social security number. String format
                                must be a 9 digit number, For example: 123456789 and must match name id
                                attribute SSN of "SSN::NAME"
                              </xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="[0-9]{9}"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="numWithholdingExemp">
                            <xs:annotation>
                              <xs:documentation>
                                This element contains number of withholding exemption of this worker.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="[0-9]{1,2}"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="workClass">
                            <xs:annotation>
                              <xs:documentation>
                                This element contains this worker's classification.
                              </xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:minLength value="1"/>
                                <xs:maxLength value ="300"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="payroll">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="hrsWorkedEachDay">
                                  <xs:annotation>
                                    <xs:documentation>
                                      This element contains this worker's work hours each day for the week in sequence. Each subsequent element contains
                                      straightTime, overtime and doubletime hours. The week shall end on the date speficified on the forWeekEnding
                                      element, and day id="1" to day id="7" are day one to day seven of such work week respectively. Please enter hour values in
                                      decimal format upto 2 decimal places. For example: 8 hours = 8, 8.0, or 8.00
                                      7 hours and 15 mins = 7.25 and 6 hours 40 = 6.67
                                    </xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="day" minOccurs="7" maxOccurs="7">
                                        <xs:complexType>
                                          <xs:sequence>
                                            <xs:element name="date">
                                              <xs:simpleType>
                                                <xs:restriction base="xs:date"/>
                                              </xs:simpleType>
                                            </xs:element>
                                            <xs:element name="straightTime">
                                              <xs:simpleType>
                                                <xs:restriction base="xs:decimal">
                                                  <xs:maxExclusive value="100"></xs:maxExclusive>
                                                  <xs:fractionDigits value="2"></xs:fractionDigits>
                                                </xs:restriction>
                                              </xs:simpleType>
                                            </xs:element>
                                            <xs:element name="overtime">
                                              <xs:simpleType>
                                                <xs:restriction base="xs:decimal">
                                                  <xs:maxExclusive value="100"></xs:maxExclusive>
                                                  <xs:fractionDigits value="2"></xs:fractionDigits>
                                                </xs:restriction>
                                              </xs:simpleType>
                                            </xs:element>
                                            <xs:element name="doubletime">
                                              <xs:simpleType>
                                                <xs:restriction base="xs:decimal">
                                                  <xs:maxExclusive value="100"></xs:maxExclusive>
                                                  <xs:fractionDigits value="2"></xs:fractionDigits>
                                                </xs:restriction>
                                              </xs:simpleType>
                                            </xs:element>
                                          </xs:sequence>
                                          <xs:attribute name="id" type="xs:integer"/>
                                        </xs:complexType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="totHrs">
                                  <xs:annotation>
                                    <xs:documentation>
                                      This element contains the total hours added up for the week from straighTime, overtime and doubletime
                                      element respectively. Please enter hour values in decimal format if necessary upto 2 decimal places.
                                      For example: 37 hours and 15 mins = 37.25 and 36 hours and 40mins = 36.67
                                    </xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="totHrsStraightTime">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="1000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="totHrsOvertime">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="1000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="totHrsDoubletime">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="1000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="hrlyPayRate">
                                  <xs:annotation>
                                    <xs:documentation>
                                      This element contains the hourly payrate of each category. Please enter the value in U.S. dollars.
                                      For example: 17.25 is the payrate of 17.25 U.S. dollars per hour.
                                    </xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="hrlyPayRateStraightTime">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="10000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="hrlyPayRateOvertime">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="10000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="hrlyPayRateDoubletime">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="10000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="grossAmountEarned">
                                  <xs:annotation>
                                    <xs:documentation>
                                      This element contains the gross amount earned by this worker under your contract for this public project, and
                                      all work under your contract. The element allWork is for when this worker has worked on other projects in the
                                      same week. Those other projects may be other public works projects or private projects. So, for example, if
                                      this worker worked on the public project covered in this payroll for four days (8 hours per day) of the week and
                                      on another project for one day (8 hours), at a pay rate of $30/hour for both jobs, the gross amount earned for
                                      thisProject would be $960 (32 x $30) and for allWork would be $960 + 8 x $30 = $1200. If this worker has only work
                                      for you under this project. The amount earned entered for thisProject should equal to the amount in allWork.
                                      Please enter the value in U.S. dollars. For example: 5000.00 is the gross amount of Five Thousand U.S. dollars.
                                    </xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="thisProject">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="allWork">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="deductionsContribPay">
                                  <xs:annotation>
                                    <xs:documentation>
                                      This element contains the standard federal and state payroll reporting categories of deductions, contributions,
                                      and payments. Please refer to accounting if you have questions on each category.
                                    </xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="fedTax">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="FICA">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="stateTax">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="SDI">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="vacationHoliday">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="healthWelfare">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="pension">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="training">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="fundAdmin">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="dues">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="travelSubs">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="savings">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="other">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="total">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:decimal">
                                            <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                            <xs:fractionDigits value="2"></xs:fractionDigits>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="notes">
                                        <xs:annotation>
                                          <xs:documentation>
                                            this element contains notes about this employee's payroll.
											Details about what deductions, payments and contributions are
											being paid to this worker.
                                          </xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                          <xs:restriction base="xs:string">
                                            <xs:minLength value="0"/>
                                            <xs:maxLength value ="256"/>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="netWagePaidWeek">
                                  <xs:annotation>
                                    <xs:documentation>
                                      This element contains the U.S. dollar amount paid to the worker this week.
                                    </xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:maxExclusive value="100000000"></xs:maxExclusive>
                                      <xs:fractionDigits value="2"></xs:fractionDigits>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="checkNum">
                                  <xs:annotation>
                                    <xs:documentation>
                                      This element contains the check number given to this worker. If paid by cash, please enter CASH in this field.
                                      If paid by direct deposit, please enter the transaction number.
                                    </xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                      <xs:minLength value="1"/>
                                      <xs:maxLength value ="20"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                        <xs:attribute name="id" type="xs:string"/>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

