XElement element = XElement.Parse(""); element.RemoveAll(); Console.WriteLine(element); The Great Gatsby F. Scott Fitzgerald
XElement element = XElement.Parse("This code will output `"); element.RemoveAll(); Console.WriteLine(element); The Great Gatsby F. Scott Fitzgerald