updated cmake script
updated parser to change into directory of xml file in order to allow reading files with relative paths