Serialize variables to simple XML format, just like JSON