I have got a requirement like this. There will be an XML file with List of Employees like following...
.. So What i have to do is Appending the given Employees info to the existed XML file using File Adapter. But When i m trying to figure it out.. the given details are appended at the end of the previous content.. but i want to see all the Emp tags(the newly appended emp list also) in the existed <Employees> tag only..
(i m also facing namespace issues here)
Can u plz provide solution for this problem..?
Thanks in advance.
the given details are appended at the end of the previous content
That will be the behaviour if you are just using file write with append...
You will need to expand your solution into three steps, firstly a file adapter sync read to retrieve the current contents of the file, then a xslt transformation to "merge" the current data with the new data and finally a file adapter write with the merged content...