create proper xml