XmlDocument.createAttribute

XmlAttribute createAttribute(string name) @safe

Creates an attribute node.