From 3a45fb84f48846fc1e11b20e7e02a26cb3ae7f77 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Sun, 4 Sep 2011 21:03:05 +0200 Subject: Also configure the parser for WeblogPopulate. --- org/madore/damlengine/WeblogPopulate.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'org/madore/damlengine') diff --git a/org/madore/damlengine/WeblogPopulate.java b/org/madore/damlengine/WeblogPopulate.java index 16c7ea0..0cc6620 100644 --- a/org/madore/damlengine/WeblogPopulate.java +++ b/org/madore/damlengine/WeblogPopulate.java @@ -34,6 +34,10 @@ public final class WeblogPopulate { LSSerializer ser = domils.createLSSerializer(); ser.getDomConfig().setParameter("xml-declaration", false); LSParser par = domils.createLSParser(DOMImplementationLS.MODE_SYNCHRONOUS, null); + par.getDomConfig().setParameter("resource-resolver", new Resolver()); + par.getDomConfig().setParameter("http://xml.org/sax/features/validation", true); + par.getDomConfig().setParameter("http://xml.org/sax/features/namespaces", true); + par.getDomConfig().setParameter("http://apache.org/xml/properties/internal/error-handler", new DamlEngine.SelectiveErrorHandler()); MessageDigest sha1 = MessageDigest.getInstance("SHA-1"); -- cgit v1.2.3