From bd9b29aced53c2ca4962d48e80a26325354eaf36 Mon Sep 17 00:00:00 2001 From: spertl Date: Mon, 20 Apr 2026 20:02:53 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Escripts/validate=5Fxml=5Fisybau.py?= =?UTF-8?q?=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/validate_xml_isybau.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/validate_xml_isybau.py b/scripts/validate_xml_isybau.py index dfa433f..23ec255 100644 --- a/scripts/validate_xml_isybau.py +++ b/scripts/validate_xml_isybau.py @@ -6,10 +6,10 @@ xsd_path = 'C:/temp-GIS/_isy/2017/1_XML-Schema/1707-metadaten.xsd' try: - with open(dateipfad, 'r', encoding='utf-8') as f: + with open(xml_path, 'r', encoding='utf-8') as f: zeilen = f.readlines() except FileNotFoundError: - return "Datei nicht gefunden." + print("Datei nicht gefunden.") def finde_letzte_bezeichnung(zeilen, ziel_zeile): """