handle minidom exceptions