I have XML stored in string variable:
xxx000Defaul
I know i am a bit late, but just have to add this answer as no one seems to know about this.
XDocument doc = XDocument.Parse("xxx000Default"); doc.Root.Name = "MasterList";
Which returns the following:
xxx 000 Default