Make XML syntactically correct