I need to merge two XML files in C# where AccountNumber is the same in these XMLfiles. I have about 400 accounts in the XML file.
XML 1:
<?xml version="1.0" standalone="yes"?>
<Account>
<Table1>
<Id>12</Id>
<AccountNumber>5050</AccountNumber>
<External>false</External>
</Table1>
</Account>
XML 2:
<?xml version="1.0" standalone="yes"?>
<Account>
<Table1>
<AccountNumber>5050</AccountNumber>
<ProductDate>2017-12-18</ProductDate>
<ProductNr>294</ProductNr>
</Table1>
</Account>
Så the result will be like this
XML 3:
<?xml version="1.0" standalone="yes"?>
<Account>
<Table1>
<Id>12</Id>
<AccountNumber>5050</AccountNumber>
<External>false</External>
<ProductDate>2017-12-18</ProductDate>
<ProductNr>294</ProductNr>
</Table1>
</Account>