delete try-catch in parse method and fix parse_by_minidom method