Improve POST sending and XML creation.