09-12-05 11:07 PM
I am working on positional schema presently and having a peculiar problem
creating schema.
I have a following file structure for the schema.
Message Header
Type
Version Number
Message Content
Id
Code
NoOfProducts
Products
ProductName
Qty
NoOfCompartments
Compartments
ComponentNumber
ExemptNo
NoOfBaseProducts
BaseProductCode
TankerCode
In the above structure, If you notice there are Products,Compartments and
BaseproductCode, these records should repeat based on value in NoOfProducts,
NoOfCompartments and NoOfBaseProducts.
for Eg: If the value for NoOfProducts is 3 then the Products record Node
should repeat 3 times......its dynamic and depends on the value from the fla
t
file.
and the input file I will get is a big positional string and need to parse
that.
Anyone inputs will be appreciated.
Thanks
[ Post a follow-up to this message ]
|