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 e466f27 commit 39debf9Copy full SHA for 39debf9
1 file changed
src/main/java/net/juniper/netconf/XML.java
@@ -9,6 +9,9 @@
9
package net.juniper.netconf;
10
11
import com.google.common.base.Preconditions;
12
+
13
+import javax.xml.XMLConstants;
14
15
import org.w3c.dom.Document;
16
import org.w3c.dom.Element;
17
import org.w3c.dom.Node;
@@ -504,6 +507,8 @@ public String toString() {
504
507
String str;
505
508
try {
506
509
TransformerFactory transFactory = TransformerFactory.newInstance();
510
+ transFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD,"");
511
+ transFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET,"");
512
Transformer transformer = transFactory.newTransformer();
513
StringWriter buffer = new StringWriter();
514
transformer.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC,"yes");
0 commit comments