add try-catch for XML parse