Convert any Ruby object to XML