*) Bugfix. Problem in XML Parser

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2903 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
(no author) 18 years ago
parent 5e57e0814d
commit c64d5018b4

@ -293,11 +293,11 @@ public abstract class AbstractService {
try {
DocumentBuilderFactory newDocBuilderFactory = DocumentBuilderFactory.newInstance();
// disable dtd validation
newDocBuilderFactory.setValidating(false);
newDocBuilderFactory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
newDocBuilderFactory.setFeature("http://xml.org/sax/features/validation", false);
// // disable dtd validation
// newDocBuilderFactory.setValidating(false);
// newDocBuilderFactory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
// newDocBuilderFactory.setFeature("http://xml.org/sax/features/validation", false);
//
DocumentBuilder newDocBuilder = newDocBuilderFactory.newDocumentBuilder();
ByteArrayInputStream byteIn = new ByteArrayInputStream(content);

Loading…
Cancel
Save