Skip to Content

Query on File Adapter - HeaderLine

Hi All,

I've a query related to FCC - header line for the following structure.

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_Testxmlns:ns0="urn:test:file">

<Record>

<Record1><field1>X</field1><field2>B</field2></Record1>

<Record2><field2>C</field3><field4>D</field4></Record2>

<Record3><field3>E</field5></Record3>

</Record>

<Record>

<Record1><field1>K</field1><field2>L</field2></Record1>

<Record2><field2>M</field3><field4>N</field4></Record2>

<Record3><field3>O</field5></Record3>

</Record>

</ns0:MT_Test>

And the file output (after FCC) should be as follows, where H1, H2 and H3 are the headers and the rest are the file values.

H1,H2,H3

X;C;E

K;M;O

FCC Param is like: Record1.fieldSeparator = ; and Record1.headerLine = 1 and same for rest two. But the output file generated doesn't have the Header line generated. Please let me know the FCC setting for the same.

Thanks,

Joe.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 08:56 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 11, 2008 at 09:00 AM

    Hi,

    1. If u require the header to be same as the XML name then use the FCC

    <Field>.addHeaderLine = 1.

    2. If u want to specify your own header name use the FCC

    <Field>.addHeaderLine = 3

    and define the name in the FCC <Field>.headerLine

    Thanks

    SaNv...

    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.