Hi all,

I have a text file that contains multiple record types with variable length records based on the record type. Each record has its own field definition.

So it looks something like this (only WAY bigger)

A123 45678 AB CDEF
BXYXABCDEF
C123456789 123456789
etc.


I also have a xsd file with the xml layout I need to map the text to.

I could simply build a text file mapping each individual field to the approprite element as I read through the text file, but there's got to be an easier way.

In the past I would have used something like an EDI translator to do all the work for me, but in this case I have no such tool available.

Any ideas or links that might be helpful to keep me from having to loop through every single field and create every single xml element or am I stuck doing it this way?

Thanks in advance,
J