I would like to change the Name property of an XmlElement in c++/cli.
I would like to do myXmlElem.Name = "xyz"
, but the compiler tells me that I can't do a set operation on the Name property.
i.e.
<abc/>
changed to
<xyz/>
How can I achieve this?
Thanks!
you can't change the Name property of an XmlElement like that (Name is read only).
you can however do something like the following (example in C#).
EDIT In response to your comment
You can use Linq to Xml which supports changing the name of an XElement: