XmlParentNode.insertChild

void insertChild(size_t index, XmlNode child) @safe

Inserts child at index.

Throws

XmlException if child is null, already has a parent, child is a document node, or index

is out of bounds.