Fixing bad XML