XmlException if child is null, already has a parent, child is a document node, or index
is out of bounds.
void insertChild(size_t index, XmlNode child) @safeInserts child at index.
XmlException if child is null, already has a parent, child is a document node, or index
is out of bounds.