xml - how to create schema file of repeating sequence coming in single line in flat file -
i getting flat file after few position data repeat same sequence in same line. example -
country name first name last name first name last name first name last name ...... india b c d e f
as can see first name , last name repeat n number of time. flat file , data come position , repeating data comes n number of time don't know total length of line. have manage create xsd getting error going infinite loop.
flat file -
india b c d e f
xsd -
<xsd:element name="header" maxoccurs="unbounded" > <xsd:complextype> <xsd:sequence> <xsd:element name="country" nxsd:style="fixedlength" nxsd:padstyle="head" nxsd:paddedby=" " nxsd:length="10" minoccurs="0" type="xsd:string"/> <xsd:element name="firstname" type="xsd:string" nxsd:style="fixedlength" nxsd:padstyle="head" nxsd:paddedby=" " nxsd:length="14" minoccurs="0"/> <xsd:element name="lastname" type="xsd:string" nxsd:style="fixedlength" nxsd:padstyle="head" nxsd:paddedby=" " nxsd:length="14" minoccurs="0"/> </xsd:sequence> </xsd:complextype> </xsd:element>
i know have not used terminatedby function , because of going infinite loop not going know number of number of firstname , lastname present in file.
how tackle issue? please me on this?
thanks
Comments
Post a Comment