Designing an NXSD

Designing an NXSD

Hi,

I am struggling to incorporate a logic to read the line 18 and 19.

Test file looks something like this :-

"00016"7"15/06/2015"08/06/2015"19/07/2015"Miss Claire Alvarez"P/2287"Mrs Helen Collins"NONE"22875" 3556.62" 0.00" 482.70" 3073.92"Miss Claire Alvarez"" "00018"5"19/07/2015"P/158807""Charge" 0.00"06/07/2015" 0.00" 0.00" 733.00" 1392.07"2"0" 366.50"N255558"A31885"517880"158807"""""" "00019"5"06/07/2015"P/158807"21"Defer Fees" 658.00"SETF"N255558"A31885"517880"158807""

The existing schema looks something like this :-

<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema targetNamespace="http://www.oneoracle.com/ARInvoices"
            xmlns:tns="http://www.oneoracle.com/ARInvoices"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
            elementFormDefault="qualified"
            attributeFormDefault="unqualified"
            nxsd:version="NXSD"
            nxsd:stream="chars"
            nxsd:encoding="ASCII">
    <xsd:annotation>
        <xsd:documentation xml:lang="en">
            This schema defines the objects to read and validate Swift AR file from Havering Council.
        </xsd:documentation>
    </xsd:annotation>

   <xsd:element name="Swift_AR">    
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="Header"      type="tns:HeaderType"   minOccurs="0"  maxOccurs="1"  nxsd:lookFor="1" nxsd:lookAhead="7" nxsd:scanLength="1"/> 
                    <xsd:element name="Invoices"    type="tns:ARInvoicesType"   minOccurs="0"   maxOccurs="unbounded" />
                </xsd:sequence>
            </xsd:complexType>
    </xsd:element>
 <xsd:element name="ARInvoice" type="tns:ARInvoicesType"/>
 <xsd:complexType name="HeaderType">    
            <xsd:sequence>
                <xsd:element name="BatchHeader"         type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<"/>
                <xsd:element name="SequenceNo"          type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<"/>
                <xsd:element name="RecordType"          type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<"/>
                <xsd:element name="BatchNo"             type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                <xsd:element name="NoOfInvoices"        type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                <xsd:element name="TotalValueForFile"   type="xsd:decimal" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                <xsd:element name="DiscFileName"        type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                <xsd:element name="DateCreated"         type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                <xsd:element name="TransactionTotal"    type="xsd:decimal" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                <xsd:element name="Undefined"           type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}"  nxsd:quotedBy="<" minOccurs="0" />
            </xsd:sequence>
        </xsd:complexType>

        <xsd:complexType name="ARInvoicesType">
            <xsd:sequence>              
                <xsd:element name="InvoiceHeader"  minOccurs="1" nxsd:lookFor="2"  nxsd:lookAhead="7" nxsd:scanLength="1" > 
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name="DebtorHeader"        type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" />                    
                            <xsd:element name="SequenceNo"          type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" />
                            <xsd:element name="RecordType"          type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" />
                            <xsd:element name="SystemDate"          type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="DebtorId"            type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="PeriodStart"         type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                                <xsd:element name="PeriodEnd"           type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="OpeningBalance"      type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="Fees"            type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                                                        <xsd:element name="Charges"             type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="Receipts"            type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="Adjustments"         type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="Interest"            type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="ClosingBalance"      type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="TotalAccuredDebt"    type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="DebtToAccrue"        type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                                                        <xsd:element name="DeferredFees"        type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="AgreedReceipts"      type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                                                        <xsd:element name="DebtorName"          type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="ClientId"            type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="PersonInvName"       type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="Address"             type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="InvoiceNo"           type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="ProviderName"        type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="AdjToAccruedDebt"    type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="DebtorReference"     type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="InvoiceIdentifier"   type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />                        
                            <xsd:element name="ClientName"          type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />     
                            <!--xsd:element name="Undefined"            type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />     
                            <xsd:element name="LineNumber"          type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" /-->     
                                                        <xsd:element name="Undefined"           type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="<" minOccurs="0" />
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>

                <xsd:element name="InvoiceItems3"    nxsd:lookFor="3" minOccurs="0" maxOccurs="unbounded"  nxsd:lookAhead="7" nxsd:scanLength="1" > 

                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name="Receipts"        type="xsd:string"   nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="SequenceNo"  type="xsd:integer"  nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="RecordType"  type="xsd:integer"      nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<"   minOccurs="0" />
                            <xsd:element name="ReceiptDate"             type="xsd:string"   nxsd:style="terminated"  nxsd:terminatedBy="""   nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="DebtorId"            type="xsd:string"   nxsd:style="terminated"  nxsd:terminatedBy="""   nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="ReceiptId"           type="xsd:string"   nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<"  minOccurs="0" />
                            <xsd:element name="Text"            type="xsd:string"   nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="Amount"          type="xsd:string"   nxsd:style="terminated"  nxsd:terminatedBy="""   nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="Code"            type="xsd:string"   nxsd:style="terminated"  nxsd:terminatedBy="""   nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="ReceiptNumber"       type="xsd:string"   nxsd:style="terminated" nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="DivisionOfService"       type="xsd:string"   nxsd:style="terminated" nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="CostCentre"      type="xsd:string"   nxsd:style="terminated" nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="Subjective"      type="xsd:string"   nxsd:style="terminated" nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" />   
                            <xsd:element name="ClientId"        type="xsd:string"   nxsd:style="terminated" nxsd:terminatedBy="${eol}"  nxsd:quotedBy="<" minOccurs="0" />                              
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>

                <!--xsd:element name="InvoiceItems4"  nxsd:lookFor="4" minOccurs="0" maxOccurs="unbounded"  nxsd:lookAhead="7" nxsd:scanLength="1" >    
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name="InterestHeader" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />        
                            <xsd:element name="SequenceNo" type="xsd:integer"  nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />        
                            <xsd:element name="RecordType" type="xsd:integer"       nxsd:style="terminated"     nxsd:terminatedBy=""" nxsd:quotedBy="<"   minOccurs="0"  />
                            <xsd:element name="InterestToDate" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy="""  minOccurs="0"  />                          
                            <xsd:element name="DebtorId" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy="""  minOccurs="0"  />                          
                            <xsd:element name="InterestId" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<"  minOccurs="0" />      
                            <xsd:element name="Text" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />        
                            <xsd:element name="Amount" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy="""   nxsd:quotedBy="<" minOccurs="0" /> 
                                                         <xsd:element name="DivisionOfService" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                                                         <xsd:element name="CostCentre" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                             <xsd:element name="Subjective" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="InterestFrom" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy="""   nxsd:quotedBy="<" minOccurs="0" />     
                            <xsd:element name="InterestRate" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" />       
                            <xsd:element name="NumberOfWeeks" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" />       
                            <xsd:element name="NumberOfDays" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" />       
                            <xsd:element name="ClientID" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="<"  minOccurs="0" />      
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element-->

                                <!--xsd:choice minOccurs="1" maxOccurs="unbounded"  nxsd:choiceCondition="terminated" nxsd:terminatedBy=""">
                                <xsd:element name="InvoiceItems5" nxsd:conditionValue="(== Charge)"-->
                <xsd:element name="InvoiceItems5"   nxsd:lookFor="5" minOccurs="0" maxOccurs="unbounded"  nxsd:lookAhead="7" nxsd:scanLength="1">   
                    <xsd:complexType>
                        <xsd:sequence>
                              <xsd:element name="ChargesHeader" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<"/>       
                              <xsd:element name="SequenceNo" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" />
                              <xsd:element name="RecordType" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" />
                              <xsd:element name="ChargeToDate" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="DebtorId" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="ChargeId" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="Charge" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="Amount" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="ChargeFromDate" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="AssessCharge" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="OpenAccrueDebt" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="DebtToAccrue" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="ClosingAccrueDebt" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="NumberOfWeeks" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="NumberOfNights" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="AssessedDebtToAccrue" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="DivisionOfService" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="CostCentre" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="Subjective" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="ClientId" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="C21" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="C22" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="C23" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="C24" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="C25" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="<" />     
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
                                <!--xsd:element name="InvoiceItems8" nxsd:conditionValue="(== Defer Fees)"-->
                    <xsd:element name="InvoiceItems8"   nxsd:lookFor="Defer Fees" minOccurs="0" maxOccurs="unbounded"  nxsd:lookAhead="32" nxsd:scanLength="1"> 
                    <xsd:complexType>
                        <xsd:sequence>
                              <xsd:element name="DeferFeesHeader" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<"/>       
                              <xsd:element name="SequenceNo" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" />
                              <xsd:element name="RecordType" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" />
                              <xsd:element name="FeeDate" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="DebtorId" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="FeeId" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="DeferFees" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="Amount" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="Code" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="DivisionOfService" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="CostCentre" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="Subjective" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="ClientId" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                              <xsd:element name="D15" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="<" />     
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
                                <!--/xsd:choice-->


                                <xsd:element name="InvoiceItems4"  nxsd:lookFor="4" minOccurs="0" maxOccurs="unbounded"  nxsd:lookAhead="7" nxsd:scanLength="1" >   
                    <xsd:complexType>
                        <xsd:sequence>
                                                        <xsd:element name="InterestHeader" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<"/>        
                            <xsd:element name="SequenceNo" type="xsd:integer"  nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />        
                            <xsd:element name="RecordType" type="xsd:integer"       nxsd:style="terminated"     nxsd:terminatedBy=""" nxsd:quotedBy="<"   minOccurs="0"  />
                            <xsd:element name="InterestToDate" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy="""  minOccurs="0"  />                          
                            <xsd:element name="DebtorId" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy="""  minOccurs="0"  />                          
                            <xsd:element name="InterestId" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<"  minOccurs="0" />      
                            <xsd:element name="Text" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />        
                            <xsd:element name="Amount" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy="""   nxsd:quotedBy="<" minOccurs="0" /> 
                                                         <xsd:element name="DivisionOfService" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                                                         <xsd:element name="CostCentre" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                             <xsd:element name="Subjective" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                            <xsd:element name="InterestFrom" type="xsd:string"  nxsd:style="terminated"  nxsd:terminatedBy="""   nxsd:quotedBy="<" minOccurs="0" />     
                            <xsd:element name="InterestRate" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" />       
                            <xsd:element name="NumberOfWeeks" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" />       
                            <xsd:element name="NumberOfDays" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" />       
                            <xsd:element name="ClientID" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="<"  minOccurs="0" />      
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>

                <xsd:element name="InvoiceItems6"   nxsd:lookFor="6" minOccurs="0" maxOccurs="unbounded"  nxsd:lookAhead="7" nxsd:scanLength="1" >  
                    <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="AdjHeader" type="xsd:string"     nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<"/>        
                          <xsd:element name="SequenceNo" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" />
                          <xsd:element name="RecordType" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" />
                          <xsd:element name="AdjustmentTo" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="DebtorId" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="AdjustmentId" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="Text" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="Amount" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="Reason" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="AdjustmentFrom" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="AdjToAccruedDebt" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="DivisionOfService" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="CostCentre" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="Subjective" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="ClientId" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="C16" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="<" />       
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>

                <xsd:element name="InvoiceItems7"  nxsd:lookFor="7" minOccurs="0" maxOccurs="unbounded"  nxsd:lookAhead="7" nxsd:scanLength="1" >   
                    <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="InvoiceFooter" type="xsd:string"   nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<"/>        
                          <xsd:element name="SequenceNo" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" />
                          <xsd:element name="RecordType" type="xsd:integer" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" />
                          <xsd:element name="SysDate" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="PeriodStart" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="PeriodEnd" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="DebtorName" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="DebtorId" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="PersonInvName" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="Address" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="InvoiceNo" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="ClosingBalance" type="xsd:decimal" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="CreditTotal" type="xsd:decimal" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="ChargeTotal" type="xsd:decimal" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="OpeningBalance" type="xsd:decimal" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="ClientName" type="xsd:string" nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0"  />
                          <xsd:element name="C17" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="<" />      
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>

                <xsd:element name="FileFooter"  nxsd:lookFor="0" minOccurs="0" maxOccurs="unbounded"  nxsd:lookAhead="7" nxsd:scanLength="1" >  
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name="Blank"               type="xsd:string"   nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />        
                            <xsd:element name="SequenceNo"          type="xsd:integer"   nxsd:style="terminated"  nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />        
                            <xsd:element name="RecordType"          type="xsd:integer"      nxsd:style="terminated"     nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" /> 
                            <xsd:element name="LBH"                 type="xsd:string"   nxsd:style="terminated"  nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" />                          
                            <xsd:element name="EndOfFile"           type="xsd:string"   nxsd:style="terminated"  nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="FileName"            type="xsd:string"   nxsd:style="terminated"  nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="C6"                  type="xsd:string"  nxsd:style="terminated" nxsd:terminatedBy="""  nxsd:quotedBy="<" minOccurs="0" /> 
                            <xsd:element name="BatchHeader"         type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="SequenceNo2"             type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="RecordType2"             type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="BatchNo"             type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="NoOfInvoices"        type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="TotalValueForFile"   type="xsd:decimal" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="DiscFileName"        type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="DateCreated"         type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="TransactionTotal"    type="xsd:decimal" nxsd:style="terminated" nxsd:terminatedBy=""" nxsd:quotedBy="<" minOccurs="0" />
                            <xsd:element name="Undefined"           type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}"  nxsd:quotedBy="<" minOccurs="0" />                            
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>

            </xsd:sequence>
        </xsd:complexType>


</xsd:schema>

I tried to use choiceCondition and conditionValue thing but its not rendering the expected output. The recordType 5 has 2 different schema, one has charge and the other has defer fees text in it. That is the only unique value between the two same recordTypes.

Let me know incase you need more information from my side to help

This is a high priority task so a quick response will be highly appreciated.

Regards, Amit

View Answers









Related Tutorials/Questions & Answers:
Designing an NXSD
Designing an NXSD  Hi, I am struggling to incorporate a logic...://www.w3.org/2001/XMLSchema" xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd..." nxsd:version="NXSD" nxsd:stream="chars" nxsd
web pagr designing - XML
web pagr designing  what is the use of XML in web page designing i want a sample code? i mean to say what is the real use of XML in jsp??? can any body suggest me
Advertisements
Database Designing
Database Designing       There are some rules are available for designing the database. These are given below : MySQL use the alpha numeric character . MySQL limited the 64
web pagr designing - XML
web pagr designing  what is the use of XML in web page designing i want a sample code? i mean to say what is the real use of XML in jsp??? can any body suggest me ???  Hi Friend, Use of XML in JSP: JSP technology
Designing Database
Designing Database       Database designing is considered as crucial stage in the development lifecycle of the web application. The database is finally responsible for storing
Designing a Database with a junction table or without it?
Designing a Database with a junction table or without it?  Designing a group of table with, where many tables reference single parent table. In that case is it a better option to create a junction table to maintain
Web Designing
Web Designing Website designing services is also one of the major services... stick the client on its display design. Designing the web, a very attractive... Designing and Web Designing. RoseIndia.net is expert in designing user-friendly
Web Designing India,Web Designing Company,Delhi Web Designing Company,Web Designing Outsourcing India
Web Designing Web Designing Services The IT brains of India.... Static Website Designing A static website is a site of static web pages connected... Designing The Dynamic sites differ from the static in terms of content
Website Designing and Development Company in India
Website Designing and Development Company in India - Mobile first website designing services We are one of most preferred name in web site designing and development in India. We offer mobile first website designing and development
Website Designing and Development Company in India
Website Designing and Development Company in India - Mobile first website designing services We are one of most preferred name in web site designing and development in India. We offer mobile first website designing and development
Free Java Software for designing route maps - WebSevices
Free Java Software for designing route maps  Which free java API can be used for designing route maps such that given the input regarding the location of a place ,the location should be shown in the map
adding of two numbers in designing of frame
adding of two numbers in designing of frame  hello sir, now i'm create two textfield for mark1&mark2 from db.how to add these two numbers in another one text field.how to write a coding... if u have another one idea pls
Web designing with Flash & Animations
Web designing with Flash & Animations Nowadays, Flash based web designing has emerged as the most advanced designing tools for creating interactive website and presenting
regarding designing of web search engine - Development process
regarding designing of web search engine  we want to design a web search engine in java. so, how to get started with our coding...can i get sample code for web crawlers or similar requirements... help us
Website Designing Company India
Website Designing Company India Roseindia Technology Pvt Ltd is a one of the most front running website designing company in India that offers... designing sites. The innovative thoughts, implementation of most advanced
Designing of textfield arrays in Netbeans IDE - Swing AWT
Designing of textfield arrays in Netbeans IDE  Respected sir, Sir I want to create an array of Jtextfield in Jframe Form in Swing GUI... in NetBeans IDE form designing.... public javax.swing.JTextField
Cheap Web Designing India
Cheap Web Designing India Roseindia... cheaper web designing services beginning from meagre US$150 onwards... designing market while the quality of the designed product is incredible
Website Designing Company Web Hosting,Web Designing plus Web Hosting Service package
-weight:bold; } Web Designing plus Web Hosting Service package... of India that offers web designing and web hosting services at the most... prestigious web designing company that provides the cheapest but robust web hosting
component designing - Struts
designing - IDE Questions
web designing - WebSevices
web designing - WebSevices
Designing Database
web designing - Design concepts & design patterns
iPhone Apps Designing Services
iPhone Apps Designing Services In mid 2007, Apple introduced smart internet based mobile phone (iPhone) that runs on Macintosh operating system... on your mobile phone as well as desktop screen. For designing website we use CSS
Website Designing Services
Website Designing Services A website is like a book that contains... to the page of a book that focuses on a particular topic. To designing a web page or a website or a web application using web designing tools
Custom Website Design,Custom Web Designing,Custom Website Designing
the designing of the website according to customer's choice, and Roseindia Technologies Pvt Ltd is specialized company in Custom website designing. Why Custom Website Designing? The Custom Web Designing means the designing
Web Designing Jobs
Web Designing Jobs      ... and education for different clients and its own. Job Description: For designing websites... will be responsible for designing websites and should have a good knowledge
Database Web Designing
Database Web Designing With the maturity of internet, the data bank... that ensure the success of your business. In the process of designing, first our... of team in web designing in India. ADS_TO_REPLACE_1 So, chat with us to design
What are the features of web designing
What are the features of web designing... to cater specific need. The web designing holds the key and important aspect of conducting global business. Web designing differs according
Static Website Designing
Static Website Designing A static website is a site of static web pages... at Roseindia Tech is one the best designing firms in India that designs... systems, and browsers. While designing the static site, we analytically
Designing your web sites
your web site you should have some knowledge of HTML and designing tools like.... You can design good web sites using Front Page.  Designing a good... of templates if any before use Professional web designing serviceYou can even hire
What is Web Designing
What is Web Designing The Internet has redefined the borders of our modern...; The technologies being used during web designing are: Markup languages.... The web developers of Roseindia have experience and expertise in designing
E-Commerce Website Designing
E-Commerce Website Designing An e-commerce website is basically designed for marketing purpose through which the products can be securely sold. The payment... free and effective website designing service at cheaper rates that suits to your
Dynamic Website Designing
Dynamic Website Designing The Dynamic sites differ from the static in terms... of the pages. We at Roseindia Tech. have a vast experience of dynamic website designing... designing service hurriedly. ADS_TO_REPLACE_2
What is HTML web designing
What is HTML web designing... designing. It is considered as a way of describing of text and images... of web designing.  Some of the prominent benefits
Web Designing Cost
Web Designing Cost Roseindia provides you complete packages... of web designing and development starts with the inputs from clients regarding... of Roseindia in web designing helps you to focus on the task of managing your
Why web designing is important
Why web designing is important In the era of digital revolution websites plays vital role in enhancing business by connecting new customer from... content. The web designing team of Roseindia made up of researchers, designers
Designing Printing Motion of a Paper
Designing Printing Motion of a Paper. It is very interesting example because it is an animated example. I have tried here to give the real printer work effect. I have taken a printer and a blank paper. A blank paper
Designing XML Schema
Designing XML Schema       XML documents can have a reference to a DTD or to an XML Schema. A Simple XML DocumentADS_TO_REPLACE_1      ADS_TO_REPLACE_2    
Website Designing Quotation,Quotation for Website Design,Quotation for Website Designing
Website Designing Quotation Get Quotation for Website Designing and development Exploring for a reliable website is not an easy task, it takes lots of times.... Quotation form for Website Designing function validateForm2(objForm
Web Site Goals - Goal of Web Designing
Web Site Goals - Goal of Web Designing What are the prime features necessary... different from Template- based website in terms of designing and price. Template based... designing in RoseIndia.net?ADS_TO_REPLACE_1 There are following steps of web design
Web Design Packages, Website Design Packages
Why Custom Website Designing? The Custom Web Designing means the designing... of custom designing website cannot be neglected. ADS_TO_REPLACE_1... designing company or professional website designer can assess your needs better
Fashion Website Template designing and website development
your own Fashion Designing Website and Promote the Fashion Design website... Web Designing Templates across various platforms. We offer you unobtrusive
Web Designing Solutions, Website Templates, Website Design Companies
Website Designing at Rose India Website design is sometimes the only... designing process includes several technologies so that information can... their significant presence in global world of services and products. Web designing
iPhone application designer
application designing. If you are looking for iPhone application designer, look no further; contact us for your iPhone application designing. We also offer iPhone and iPad application designing and development services for our clients
Web Page design and Development Company
Web Page design and Development Company We are web page designing and development company in India. We offer high impact webpage designing, development, re-designing, testing and maintenance solutions to our clients all around
Web Design Packages, Website Design Packages
Custom Website Design Custom website designs means the designing... is specialized company in Custom website designing. We have offered several Custom website designing products to our clients as per their business
iPad application designer
designer for designing your iPad application? Look no further, we provide professional iPad application designing services. We have a team of iPad application designers and developer for designing and developing clients applications. You
Web Programmer
; designing on Java/PHP/.Net. platform. Thorough knowledge of Linux... designing, web technologies. Can handle project/task independently as well

Ads