I have an XML file with the following structure:
<tu>
<tuv xml:lang="EN">
<seg>XXX</seg>
</tuv>
<tuv xml:lang="FR">
<seg>YYY</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN">
<seg>XXX</seg>
</tuv>
<tuv xml:lang="FR">
<seg>YYY</seg>
</tuv>
</tu>
...
And I would like to delete the node <tu>
when <seg>XXX</seg>
is equal to <seg>YYY</seg>
from a C# application. I have tried with linq and in some other ways, but I wasn t able to compare those internal valuea and then delete the parent node if necessary.
预祝福!