added exceptions for xml interpreting