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
Bardo BardoSubject: Region start position (line versus byte)
Author: Bardo Bardo
Date: 10 Sep 2008 04:44 PM
Hi,

I have a file which has a header and detail region. Both regions have CRLF row delimiters and TAB field delimiters. The header has a number of fields such as dates where the data may be of variable length (the day and months are NOT padded with a leading 0). When I create the new region for the detail, I select “At row X” option. I would have thought this would tell the parser that this region ALWAYS begins at line number X. However, I then tried to use the same conversion file with a different input file, which had a date field in the header with a longer length. This caused the detail region to be parsed from the wrong position.
I then checked the conv file, and it appears that the region has still been configured with a starting CHARACTER number rather than line/row number. I saw this by looking at the <region><start> element value, which is configured with a number of 508. When I create a conversion file from scratch for the data file which did not parse correctly, this value is set to 497. The difference in numbers also appears to be the number of bytes the parser is incorrect by when it outputs the data in the first case.

Could you please tell me what I am doing wrong, as I would have thought this is a straightforward and common scenario.

The conversion files MUST support a date with varying length such as “1/6/2005 3:24:47 PM” and “10/20/2006 9:26:14 AM”.

Thanks

Postnext
Tony LavinioSubject: Region start position (line versus byte)
Author: Tony Lavinio
Date: 10 Sep 2008 06:44 PM
We received the files you sent, and you should hear back shortly.

Posttop
Tony LavinioSubject: Region start position (line versus byte)
Author: Tony Lavinio
Date: 12 Sep 2008 10:02 PM
We are testing a patch for the problem, and will contact you shortly
with instructions for downloading.

 
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.