a very simple helper to convert object to xml text