Daniel Camacho
Daniel Camacho

Reputation: 423

Regarding XML Diff & Patch

I got the example from MSDN about how to compare two XML with XML Diff and Patch. MSDN XML Diff & Path

It is an easy example but I dont get what I expect.

I have the following XMls:

<a>
<component>A</component>
<component>4</component>
</a>

and

<a>
<component>A</component>
<component>5</component>
</a>

Running the tool code I dont get exaclty the difference. The output which I get is:

<a>
<component>A</component>
<component>5</component>
</a>

But for my purposes I would like to get just the difference which differs from the original, in this case.

<a>
<component>4</component>
</a>

Does anyone know how I can adapt the code to my solution.

Thank you very much.

edit code used:

Upvotes: 2

Views: 5295

Answers (0)

Related Questions