We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b52cfd1 commit e173a1aCopy full SHA for e173a1a
1 file changed
src/test/java/org/cyclonedx/BomXmlGeneratorTest.java
@@ -837,6 +837,10 @@ public void testComponentAuthorsSerializationAndDeserialization(String xmlFilePa
837
// Verify the xml content
838
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
839
dbf.setNamespaceAware(true);
840
+ dbf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
841
+ dbf.setFeature("http://xml.org/sax/features/external-general-entities", false);
842
+ dbf.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
843
+ dbf.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
844
Document doc = dbf.newDocumentBuilder()
845
.parse(new java.io.ByteArrayInputStream(xmlString.getBytes()));
846
0 commit comments