Lex and Yacc Program to detect errors in an XML File