Adds an DomElement of type GXml.Object as a child of element.
Object is always added as a child of element but just added to collection if validate_append returns true;