xmllint --noout your_test_file.xml
Check for return code of this command. See documentation. Value of 1 is returned when basic parsing errors are met. E.g.:
echo $?
or echo %errorlevel% if on Windows.
xmllint --noout your_test_file.xml
Check for return code of this command. See documentation. Value of 1 is returned when basic parsing errors are met. E.g.:
echo $?
or echo %errorlevel% if on Windows.