Making XML literals more robust