<?xml version="1.0"?>

<?xm-well_formed path="C:\\Program Files\\SoftQuad\\XMetaL 2\\xCBL\\schema.rlx"?>

   <schema uri="urn:x-commerceone:document:com:commerceone:XCBL35:XCBL35.sox$1.0">

      <elementtype name="InvoiceSummary">
         <model>
            <sequence>
               <element type="int" name="NumberOfLines" occurs="?"/>
               <element type="InvoiceTotals" occurs="?"/>
               <element type="ListOfTaxSummary" occurs="?"/>
               <element type="AllowOrChargeSummary" occurs="?"/>
               <element type="InvoicePaymentStatus" occurs="?"/>
               <element type="ListOfActualPayment" occurs="?"/>
               <element type="string" name="SummaryNote" occurs="?"/>
            </sequence>
         </model>
      </elementtype>

      <elementtype name="AllowOrChargeSummary">
         <model>
            <element type="TotalAllowOrCharge" occurs="+"/>
         </model>
      </elementtype>

      <elementtype name="TotalAllowOrCharge">
         <model>
            <sequence>
               <element type="AllowOrChargeIndicatorCode" name="AllowOrChargeIndicatorCoded"/>
               <element type="string" name="AllowOrChargeIndicatorCodedOther" occurs="?"/>
               <element type="AllowOrChgDesc" name="AllowanceOrChargeDescription"/>
               <element type="MonetaryValue" name="SummaryAllowOrCharge"/>
            </sequence>
         </model>
      </elementtype>

      <datatype name="AllowOrChargeIndicatorCode">
         <enumeration datatype="NMTOKEN">
            <option>Other</option>
            <option>Allowance</option>
            <option>Charge</option>
            <option>AllowanceRequest</option>
            <option>NoAllowanceOrCharge</option>
         </enumeration>
      </datatype>

      <elementtype name="InvoicePaymentStatus">
         <model>
            <sequence>
               <element type="ActualPaymentStatusCode" name="InvoicePaymentStatusCoded" occurs="?"/>
               <element type="string" name="InvoicePaymentStatusCodedOther" occurs="?"/>
            </sequence>
         </model>
      </elementtype>

   </schema>