K
kieroneil
I am having a problem with validating a document.
Here is the segment that is causing the problem:
<INSERT>
<HEADERFIELDS>
<TABLENAME>AppDetails</TABLENAME>
<PARENTROW>01</PARENTROW>
<CURRENTROW>001</CURRENTROW>
</HEADERFIELDS>
<DATAFIELDS>
<ProductID>07</ProductID>
<CashPrice>500</CashPrice>
<BranchID>54</BranchID>
<AmountRequested>500</AmountRequested>
<AmountFinanced>500</AmountFinanced>
<DetailTerm>360</DetailTerm>
<NumberOfPayments/>
<HMDALoanPurpose>1</HMDALoanPurpose>
</DATAFIELDS>
</INSERT>
The NumberOfPayments element is causing it not to validate.
This is how it looks in the XSD:
<xs:element name="NumberOfPayments" type="xs:int"/>
This is the reference to it:
<xs:element ref="NumberOfPayments" minOccurs="0"/>
I would like it to accept being empty as well as Int values.
How do I do this?
THanks in advance,
Kier
Jacksonville, FL
Here is the segment that is causing the problem:
<INSERT>
<HEADERFIELDS>
<TABLENAME>AppDetails</TABLENAME>
<PARENTROW>01</PARENTROW>
<CURRENTROW>001</CURRENTROW>
</HEADERFIELDS>
<DATAFIELDS>
<ProductID>07</ProductID>
<CashPrice>500</CashPrice>
<BranchID>54</BranchID>
<AmountRequested>500</AmountRequested>
<AmountFinanced>500</AmountFinanced>
<DetailTerm>360</DetailTerm>
<NumberOfPayments/>
<HMDALoanPurpose>1</HMDALoanPurpose>
</DATAFIELDS>
</INSERT>
The NumberOfPayments element is causing it not to validate.
This is how it looks in the XSD:
<xs:element name="NumberOfPayments" type="xs:int"/>
This is the reference to it:
<xs:element ref="NumberOfPayments" minOccurs="0"/>
I would like it to accept being empty as well as Int values.
How do I do this?
THanks in advance,
Kier
Jacksonville, FL