One would think (intuitively) that one could just create a child element right from the parent, like this:

$parent = $xml.CreateElement("parent")

$child = $root.CreateElement("child")

Doesn't seem to work like that though ...