Creates a new DomElement and append it as a child of parent.
It should set current namespace, taking care about set namespace prefix.