I need to check whether the XML contained in a text file is valid or not. I also need to count the number of tags in that file if it\'s valid. The program takes input from t