AnsweredAssumed Answered

How to Combine xml Documents in to a Single Document

Question asked by abodapati@ealabs.in on Jun 29, 2017
Latest reply on Jun 29, 2017 by nunnapradeep868228

Hi All,

 

Here am converting csv to xml file. After converting file in to xml ,individual docs are appeared. i mean they are splitted. I want to combine these individual xml docs into a single Doc.

 

Example for out coming XML Docs:

1st Xml Doc:

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

<person>
  <birth_date>1994-07-19</birth_date>
  <employee_data>
    <assignment>
      <PersonId>123</PersonId>
      </assignment>

      </employee_data>
 </person>

2ndXml Doc:

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

<person>
    <employee_data>
    <assignment>
      <PersonId>423</PersonId>
      </assignment>

      </employee_data>
 </person>

 

Expected Result:

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

<person>
  <birth_date>1994-07-19</birth_date>
  <employee_data>
    <assignment>
      <PersonId>123</PersonId>
      </assignment>

      </employee_data>
 </person>

<person>
   <employee_data>
    <assignment>
      <PersonId>423</PersonId>
      </assignment>

      </employee_data>
 </person>

 

 Let me know which element i need to consider to combine these docs in  DATA Process Shape or else is there any alternative solution???

 

Thanks in Advance.

Outcomes