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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.