C# to convert xml attributes to elements
问题 I need to convert all attributes to nodes in an XML file, with the exception of attributes in the root node. I found a similar question here: xquery to convert attributes to tags, but I need to do the conversion in C#. I have also found a possible solution using XLS here: Convert attribute value into element. However, that solution essentially changes the node name to the attribute name and removes the attribute. I need to create new sibling nodes with the name and value of the attributes and