Convert any JavaScript object to XML