Possible Duplicate:
How to delete xml element with C#?
Say I have an XML Document like so :
<doc>
<car>
<color>Red</color>
<size>compact</size>
</car>
<car>
<color>Yellow</color>
<size>mid-size</size>
</car>
</doc>
And I wanted to delete the entire entry of car with the attribute yellow, so the xml file just becomes
<doc>
<car>
<color>red</color>
<size>compact</size>
</car>
</doc>
How would I go about this? I've searched high and low and found solutions, but sadly not for c#.