Designing an NXSD

Ads
 

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

Ads









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
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
Advertisements
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
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
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
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
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
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
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. So, chat with us to design a reliable website
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
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... Professional web designing serviceYou can even hire a professional web designer
What is Web Designing
What is Web Designing The Internet has redefined the borders of our modern... used during web designing are: Markup languages (such as HTML... developers of Roseindia have experience and expertise in designing websites
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... for? Contact us for getting exceptional dynamic website designing service
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... designing helps you to focus on the task of managing your business, our web
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... generates traffic by optimizing your company content. The web designing team
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
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... 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? There are following steps of web design process: Planning
Web Design Packages, Website Design Packages
Why Custom Website Designing? The Custom Web Designing means the designing... of custom designing website cannot be neglected. The site owners must... designer is always a great idea as the professional website designing company
Fashion Website Template designing and website development
Designing Website and Promote the Fashion Design website services and products... site. We can offer you a variety of attractive and creative Web Designing
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

Ads