a null reference exception means that the code that was called somewhere expected a value and didnt get one

also means that the error handling in that piece of code is not very good

chances are you may be missing something in the XML file. Do you have a XML schema to validate the file?