With a LINQ-to-XML query, I have a collection of elements (type IEnumerable<XElement>) and on this collection, I want to update all values of a specific attribute. All updated values can be the same.
Take elements containing these elements:
<element attribute1="value11" attribute2="value21" attribute3="value31" />
<element attribute1="value21" attribute2="value22" attribute3="value33" />
<element attribute1="value31" attribute2="value23" attribute3="value33" />
On elements, how to update all values of attribute1 at the same time?