Skip to content

Commit

Permalink
use default transformer implementation for parsing unknown content in…
Browse files Browse the repository at this point in the history
…to DOM elements
  • Loading branch information
clausnagel committed Nov 5, 2023
1 parent 81fba65 commit 1e79e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/xmlobjects/stream/XMLReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e79e96

Please sign in to comment.