Changed generic exception catch to specific exception catch in parseXML method.