From 8f9f1c0be5e58700a00f3da8b1964908eccc02d9 Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Sun, 1 Dec 2024 20:22:18 +0000 Subject: [PATCH] [bugfix] Undo the attribute changes in '[optimise] Namespace and indentation performance fixes' as they don't respect special chars (yet) --- .../src/main/java/org/exist/util/serializer/XMLWriter.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/exist-core/src/main/java/org/exist/util/serializer/XMLWriter.java b/exist-core/src/main/java/org/exist/util/serializer/XMLWriter.java index 1c97047e4ba..1055d0ec696 100644 --- a/exist-core/src/main/java/org/exist/util/serializer/XMLWriter.java +++ b/exist-core/src/main/java/org/exist/util/serializer/XMLWriter.java @@ -352,9 +352,7 @@ public void attribute(final QName qname, final CharSequence value) throws Transf } writer.write(qname.getLocalPart()); writer.write("=\""); - //TODO (AP) - perf hack - needs to respect specials (e.g. precompute) - //writeChars(value, true); - writer.append(value); + writeChars(value, true); writer.write('"'); } catch(final IOException ioe) { throw new TransformerException(ioe.getMessage(), ioe);