Skip to Content
author's profile photo Former Member
Former Member

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!

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Aug 03, 2006 at 02:03 PM

    hi Hans,

    try deleting the header from your own adapter module

    and put it before the transformerbean adapter module

    Regards,

    michal

    -


    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

    Add comment
    10|10000 characters needed characters exceeded