public void RemoveProtection() { // Remove every node of type documentProtection. settings.Descendants(XName.Get("documentProtection", w.NamespaceName)).Remove(); }