####################################################### # Include: check xml file for sanity (legacy, old way # ####################################################### # test if the xml file is valid if ! [ -r "${xmlfile}" ]; then writelog "${xmlfile} not a readable XML file!" slxlog "virt-nonreadable-xml" "XML file not readable: $xmlfile" error_user "Die XML-Datei der gewählten Sitzung ist nicht lesbar oder existiert nicht" exit 1 fi # test if XML file if ! grep -q '