XML syntax correction