cancel
Showing results for 
Search instead for 
Did you mean: 

appending xml file via receiver adapter

Former Member
0 Kudos

Hi,

I want to append xml files via receiver file adapter of PI 7.1.

When iam using append mode and generating files they are getting appended but when i open the xml file

it gives an error.It says :

"Only one top level element is allowed in an XML document. Error processing resource 'file:///N:/Documents and Settings".

i tried this by changing the data type ,but no use.

is there anyway where we can fix this problem of appending xml files.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello Rahul,

What is requirement, whay you want to append XML?

stefan_grube
Active Contributor
0 Kudos

> is there anyway where we can fix this problem of appending xml files.

No. This is not possible.

prateek
Active Contributor
0 Kudos

What do you mean by appending XML file? Valid XML file only have one root node and if you use append option of file adapter it will append files with multiple root nodes which will not stay xml anymore. Therefore this option is used for text files generally.

Regards,

Prateek

Former Member
0 Kudos

As I know you can't append the xml file at Receiver file adapter. You can change your Interface design as like below so that you can append receiver xml file.

First scenario -> Create receiver .txt file with multiple records using .txt file you can append the records....

create another scenario to pick up the .txt file and convert as xml file.

Regards,

Venu.