public static void validate(Document d, String schema, DOMErrorHandler handler) { DOMConfiguration config = d.getDomConfig(); config.setParameter("schema-type", "http://www.w3.org/2001/XMLSchema"); config.setParameter("validate", true); config.setParameter("schema-location", schema); config.setParameter("resource-resolver", new ClasspathResourceResolver()); config.setParameter("error-handler", handler); d.normalizeDocument(); }
/** * @inheritDoc */ public DOMConfiguration getDomConfig() { return dom.getDomConfig(); }
@Override public DOMConfiguration getDomConfig() { return original_.getDomConfig(); }
public DOMConfiguration getDomConfig() { return this.doc.getDomConfig(); }
@Override public DOMConfiguration getDomConfig() { return original_.getDomConfig(); }
@Override public DOMConfiguration getDomConfig() { return document.getDomDocument().getDomConfig(); }
@Override public DOMConfiguration getDomConfig() { return document.getDomConfig(); }
public DOMConfiguration getDomConfig() { return document.getDomConfig(); }
public DOMConfiguration getDomConfig() { return target.getDomConfig(); }
/** * @return * @see org.w3c.dom.Document#getDomConfig() */ public DOMConfiguration getDomConfig() { return getParent().getDomConfig(); }
void canonicalize(Document doc) { doc.getDomConfig().setParameter("canonical-form", true); doc.normalizeDocument(); }
/** * DOM3 method: Normalize the document with namespaces * @param doc * @return */ public static Document normalizeNamespaces(Document doc) { DOMConfiguration docConfig = doc.getDomConfig(); docConfig.setParameter("namespaces", Boolean.TRUE); doc.normalizeDocument(); return doc; }
/** * DOM3 method: Normalize the document with namespaces * * @param doc * @return */ public static Document normalizeNamespaces(Document doc) { DOMConfiguration docConfig = doc.getDomConfig(); docConfig.setParameter("namespaces", Boolean.TRUE); doc.normalizeDocument(); return doc; }
/** * DOM3 method: Normalize the document with namespaces * @param doc * @return */ public static Document normalizeNamespaces(Document doc) { DOMConfiguration docConfig = doc.getDomConfig(); docConfig.setParameter("namespaces", Boolean.TRUE); doc.normalizeDocument(); return doc; }
/** * DOM3 method: Normalize the document with namespaces * * @param doc * @return */ public static Document normalizeNamespaces(Document doc) { DOMConfiguration docConfig = doc.getDomConfig(); docConfig.setParameter("namespaces", Boolean.TRUE); doc.normalizeDocument(); return doc; }
/** * DOM3 method: Normalize the document with namespaces * * @param doc * * @return */ public static Document normalizeNamespaces(Document doc) { DOMConfiguration docConfig = doc.getDomConfig(); docConfig.setParameter("namespaces", Boolean.TRUE); doc.normalizeDocument(); return doc; }
/** * DOM3 method: Normalize the document with namespaces * * @param doc * * @return */ public static Document normalizeNamespaces(Document doc) { DOMConfiguration docConfig = doc.getDomConfig(); docConfig.setParameter("namespaces", Boolean.TRUE); doc.normalizeDocument(); return doc; }
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DOMConfiguration domConfig; boolean state; doc = (Document) load("barfoo", false); domConfig = doc.getDomConfig(); state = ((Boolean) domConfig.getParameter("namespaces")).booleanValue(); assertTrue("namespacesTrue", state); } /**
public static void validate(Document d, String schema, DOMErrorHandler handler) { DOMConfiguration config = d.getDomConfig(); config.setParameter("schema-type", "http://www.w3.org/2001/XMLSchema"); config.setParameter("validate", true); config.setParameter("schema-location", schema); config.setParameter("resource-resolver", new ClasspathResourceResolver()); config.setParameter("error-handler", handler); d.normalizeDocument(); }
public static void validate(Document d, String schema, DOMErrorHandler handler) { DOMConfiguration config = d.getDomConfig(); config.setParameter("schema-type", "http://www.w3.org/2001/XMLSchema"); config.setParameter("validate", true); config.setParameter("schema-location", schema); config.setParameter("resource-resolver", new ClasspathResourceResolver()); config.setParameter("error-handler", handler); d.normalizeDocument(); }