I'm having difficulties wrapping my head around how to do this, and since it's my first time doing anything with xml, I figured I should ask more experienced people to save some time.
I know how to remove elements. I've loaded the xml into an XDocument. I know how to read elements, and obtain the value of an attribute of an element. I just don't know how to remove multiple elements of the same type based on the value of their attributes. This is a sample of the XML I want to use. I want to remove all effect elements with type="SetName"
<tech name="Name" type="Normal">
<displaynameid>11166</displaynameid>
<effects>
<effect type="TextOutput"></effect>
<effect type="Data"></effect>
<effect type="Data"></effect>
<effect type="SetName"></effect>
<effect type="SetName"></effect>
<effect type="Data"></effect>
<effect type="SetName"></effect>
<effect type="SetName"></effect>
<effect type="SetName"></effect>
</effects>
</tech>