XmlElement.removeAttribute

void removeAttribute(string qname) @safe

Removes an attribute by name.