DomDocument.createElement

DomElement * createElement(uint tag, Ns ns) @nogc nothrow pure @safe

A new element (not attached), with an empty content for a <template>. It returns null if out of memory, as the other create... functions.