I am trying to merge multiple xml files into one. I have come across multiple previously answered similar solutions. However, I have not found one that fits my problem. I have 3 xml files with different attributes. One of the xml files has a <main1></main>
.I am trying to grab the content of the other xml files and place it inside this tag along with the existing data.
test1.xml
<acura>
<Brand>Acura</Brand>
<Model>NSX 2017</Model>
<Price>156000</Price>
</acura>
file2.xml
<honda>
<Brand>Honda</Brand>
<Model>Accord</Model>
<Price>24</Price>
</honda>
something3.xml
<main>
<bmw>
<Brand>BMW</Brand>
<Model>5 Series</Model>
<Price>51200</Price>
</bwm>
</main>