Hi Friends,
I am facing an issue with writing an nxsd.
Sample file:
a|b|c|d|e|h|i|
a|b|c|d|e|f|h|
CHMICST.MICS.SNDCK02.DVC.BUCADN.IBSIN
CHMICST.MICS.PRODJCL(CHMSNDC2)
In the above file last two lines are the trailer lines and I am unable to read the file with the trailer(able to read without the trailer) as the file is pipe delimited and the trailer is '.' separated.For the last 2 lines the xsd is as below:
xsd:
<xsd:element name="Trailer" minOccurs="0" nxsd:startsWith="CHMICST" maxOccurs="unbounded" nxsd:style="array" nxsd:cellSeparatedBy="." ">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="C1" type="xsd:string"/>
<xsd:element name="C2" type="xsd:string"/>
<xsd:element name="C3" type="xsd:string"/>
<xsd:element name="C4" type="xsd:string"/>
<xsd:element name="C5" type="xsd:string"/>
<xsd:element name="C6" type="xsd:string" nxsd:terminatedBy="${eol}"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Please suggest how my nxsd sould look like.
Thanks,
Meera