How can I do something like XElement xml =empty;
+1
A:
Use the RemoveAll method to remove all child elements:
xml.RemoveAll();
This will leave you with your existing XElement as is but if you wanted to clear that out too just create a new XElement entirely.
xml = new XElement("name");
Daz Lewis
2010-09-30 15:08:45