Subject:Convert to XML not converting entire file when used programmatically Author:Jay Lessik Date:14 Jun 2006 11:20 AM
I have defined a flat file to xml adapter using Convert to XML in Stylus Studio. When I preview the results it works perfectly, however when I invoke it programmatically in a Java class it only converts the first line in the file. The records are fixed width with each record on it's own line. I can follow the process via debug statements and have verified that the temporary file that the Java class creates [via StylusFileFactory.createStylusFile() as specified in http://www.stylusstudio.com/docs/v62/d_flatfileconversion11.html] contains all the records from the input file. However, the result after applying the adapter only contains the first line as XML.
Subject:Convert to XML not converting entire file when used programmatically Author:Jay Lessik Date:14 Jun 2006 02:23 PM
501i. I notice there's a 501j now that fixes a bug related to the Convert to XML. My data file has only 12 rows (not 8192+) but perhaps it may solve the problem. My apologies for not trying the newest version prior to posting! I'll report back with my results.