summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2011-09-04 21:03:05 +0200
committerDavid A. Madore <david+git@madore.org>2011-09-04 21:03:05 +0200
commit3a45fb84f48846fc1e11b20e7e02a26cb3ae7f77 (patch)
tree13b58aebf8f23bbc3e53eaf33a3ed51271402dc9
parent3365a175e1721e0fda7a56ad53e24a7e337c13cf (diff)
downloaddamlengine-3a45fb84f48846fc1e11b20e7e02a26cb3ae7f77.tar.gz
damlengine-3a45fb84f48846fc1e11b20e7e02a26cb3ae7f77.tar.bz2
damlengine-3a45fb84f48846fc1e11b20e7e02a26cb3ae7f77.zip
Also configure the parser for WeblogPopulate.
-rw-r--r--org/madore/damlengine/WeblogPopulate.java4
1 files changed, 4 insertions, 0 deletions
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");