From 1e79e967340346dacca52258278896cb39dae0f9 Mon Sep 17 00:00:00 2001 From: Claus Nagel Date: Sun, 5 Nov 2023 16:00:08 +0100 Subject: [PATCH] use default transformer implementation for parsing unknown content into DOM elements --- src/main/java/org/xmlobjects/stream/XMLReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/xmlobjects/stream/XMLReader.java b/src/main/java/org/xmlobjects/stream/XMLReader.java index d740063..e98eb44 100644 --- a/src/main/java/org/xmlobjects/stream/XMLReader.java +++ b/src/main/java/org/xmlobjects/stream/XMLReader.java @@ -281,7 +281,7 @@ public Element getDOMElement() throws XMLReadException { try { if (transformer == null) - transformer = TransformerFactory.newInstance().newTransformer(); + transformer = TransformerFactory.newDefaultInstance().newTransformer(); DOMResult result = new DOMResult(); transformer.transform(new StAXSource(reader), result);