From adb07af4a12c4460335cc07dd816310897c380fc Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Mon, 4 Mar 2024 20:09:39 -0600 Subject: [PATCH] CLDR-17371 fix ElementAttributeInfo to use DoctypeXmlStreamWrapper (#3548) --- .../main/java/org/unicode/cldr/util/ElementAttributeInfo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cldr-code/src/main/java/org/unicode/cldr/util/ElementAttributeInfo.java b/tools/cldr-code/src/main/java/org/unicode/cldr/util/ElementAttributeInfo.java index 239fad781a1..9b00c46b9cb 100644 --- a/tools/cldr-code/src/main/java/org/unicode/cldr/util/ElementAttributeInfo.java +++ b/tools/cldr-code/src/main/java/org/unicode/cldr/util/ElementAttributeInfo.java @@ -135,13 +135,14 @@ private ElementAttributeInfo(String filename, DtdType type) throws IOException { is.setSystemId(filename); // xmlReader.setContentHandler(me); // xmlReader.setErrorHandler(me); - xmlReader.parse(is); + xmlReader.parse(DoctypeXmlStreamWrapper.wrap(is)); this.elementAttribute2Data = Collections.unmodifiableMap(getElementAttribute2Data()); // TODO, protect rows getElement2Children().freeze(); getElement2Parents().freeze(); getElement2Attributes().freeze(); } catch (Exception e) { + // TODO: why is this being caught here? e.printStackTrace(); } finally { fis.close();