/** * Tries to determine the DOMImplementation that is used to handled a particular namespace. The * method may return null for namespaces that don't result in a DOM. It is mostly used in * namespaces occurring in foreign objects. * * @param namespaceURI the namespace URI * @return the handling DOMImplementation, or null if not applicable */ public DOMImplementation getDOMImplementationForNamespace(String namespaceURI) { ElementMapping mapping = (ElementMapping) this.namespaces.get(namespaceURI); if (mapping == null) { return null; } else { return mapping.getDOMImplementation(); } }