Skip to Content
avatar image
Former Member

consolidation of messages...........

Hi all,

I am doing file to file scenario.When I use APPEND in the File adapter it is also adding <?xml version="1.0" encoding="UTF-8" ?>

I need to send a file for every 10 minutes consolidate all files and send at the end of the day.

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

<ID>31154</ID>

The next time when i send the file with different< ID>31155</ID>

it should append ignoring <?xml version="1.0" encoding="UTF-8" ?>

The consolidated file must look like this...

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

<ID>31154</ID>

< ID>31155</ID>

Thanks ,

Srinivas

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 05, 2007 at 06:20 PM

    i'm not if u can have this acheived using xi but u can have a batch file executed that will handle this....this is not a part of xi. u need to write a java prgram (or any) to handle this

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 05, 2007 at 06:23 PM

    Hi Srinivas,

    U can use the file adapters option of calling an operating system command..

    Call a shell script and let it trim off the extra <XMl..> tags..

    Add comment
    10|10000 characters needed characters exceeded