Issue
I have a folder which contains multiple xml files. I want to make sure all the XMLs are well formed before passing the file to destination. Currently I can validate single XML using xmllint by creating a shell script and then writing below script:
xmlfile=ValidXML.xml
xmllint --format "${xmlfile}"
But how can I achieve the same result if I have x number of XMLs in the folder.
Solution
xmllint can process more than one file at once and so you can do:
xmllint ..... *.xml
Answered By - Raman Sailopal Answer Checked By - Mildred Charles (WPSolving Admin)