Skip to Content
Former Member
Aug 03, 2006 at 01:28 PM

Content conversion, skip header line


Hi Forum,

I have a flat file with a structure of exactly one header line, and unbounded number of detail lines.

The file is picked up using a JMS adapter. I'm using the transformerbean to convert the file contents.

My problem is to skip the header line. Basically I could do with plain conversion (SimplePlain2XML) but the parameter xml.documentSkipFirstRows is only available when using structure conversion (StructPlain2XML).

However, structure conversion is not an option for me, since my detail lines cannot be identified by a key field. Therefore I'm not able to specify a keyfieldvalue which is mandatory when using structure conversion..

Given this scenario, how is it possible to avoid the header line in the resulting XML document ?

Help will of course be appreciated by points!