Subject:Flat file with complex layout for each line -> converting to Xml Author:Miriam Berman Date:07 Jun 2006 02:19 PM
I am working with a fixed-width file that I would like to convert to XML.
Each line of the file starts with a tag that determines the file layout of that line, e.g. if the line starts with "Inv " in characters 1-6 it is the Invoice Header information, and would have one layout for that line. If it starts with "Cust " in characters 1-6 it is the Customer information and would need a different fixed layout for that line. If it starts with "Item " in characters 1-6 it is the line item information - and there may be multiple of this type of line.
Can Stylus Studio be used to convert a file like this into XML format?