added a try/catch around the XML parsing and an error log