Try/catch around the xml parsing block.