Checking if xml is well formed using xmllint 2013 December 12
I had to check if an xml document was well formed today. I have a few nice graphical tools that can do this, but I wanted to do it in a script on my linux box. I found out that xmllint does a good job of this. The command I used is:
xmllint -noout input.xml
If the XML document is not well-formed errors well go to standard out and then I can figure out how to correct the cause of the errors.