static void RemoveXmlBase(XmlElement element)
{
element.RemoveAttribute ("xml:base");
if (!element.HasChildNodes) {
return;
}
IEnumerable<XmlElement> children = element.ChildNodes.OfType<XmlElement> ();
foreach (XmlElement child in children) {
RemoveXmlBase (child);
}
}