fixed getObjectXML

Fixed function calls for getObjectXML