Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions core/src/main/java/com/onelogin/saml2/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ public static Document parseXML(InputSource inputSource) throws ParserConfigurat
} catch (Throwable e) {}

DocumentBuilder builder = docfactory.newDocumentBuilder();
XMLErrorAccumulatorHandler errorAcumulator = new XMLErrorAccumulatorHandler();
builder.setErrorHandler(errorAcumulator);
Document doc = builder.parse(inputSource);

// Loop through the doc and tag every element with an ID attribute
Expand Down