XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Miriam BermanSubject: 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?

Posttop
Tony LavinioSubject: Flat file with complex layout for each line -> converting to Xml
Author: Tony Lavinio
Date: 08 Jun 2006 09:47 AM
Yes.
Use the Add Pattern option to select lines that match a specific
regular expression.
See http://www.stylusstudio.com/docs/v2006/d_flatfileconversion28.html

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.