some fixes to xml.bat