title: How to set an attribute value at a determined position inside an Xelement using Linq to xml?
body: <p>I need to add a new attribute to an xml node which has about 10 attributes. Using the following command adds the attribute at the end of the element's attribute list.</p>
  <p><code>*identityVerificationManagerServiceNode.SetAttributeValue(&quot;PresetID&quot;, &quot;24761685-715F-40F3-8FDA-5C2E372A1186&quot;);*</code></p>
  <p>I don't want it to go to the end, I need it after an attribute which XName is &quot;DefinitionID&quot;.
  Is there a way to change the attributes order inside an element using Linq to XML?</p>