Validating the syntax of a xml text