I am wondering about XDocument possibilities in relation to xml and how it can modify xml. Let's assume I have next xml:
<client>
<firstName>Ian</firstName>
<firstName>Charles</firstName>
<city>LosAngeles</city>
<state>California</state>
</client>
Can I leave there only one "firstname" node (which is at the very top) by using XDocument or XPath operations? I want to do something like .Distinct() operation does in LINQ. I want to make my resulting xml look like this:
<client>
<firstName>Ian</firstName>
<city>LosAngeles</city>
<state>California</state>
</client>