Convert XML parser die to an Exception and catch it