remove a duplicate element(with specific value) from xml using linq
- by Q8Y
If I have this xml
<?xml version="1.0" encoding="utf-8"?>
<super>
<A value="1234">
<a1 xx="000" yy="dddddd" />
<a1 xx="111" yy="eeeeee" />
<a1 xx="222" yy="ffffff"/>
</A>
</super>
and I need to remove a1 element (that have xx=222) completely. why this won't happen using my code?? i…