/** * Reads "namespace" elements from the catalog.xml file. * * <p>For each namespace element read, an entry of <prefix,uri> is created in a map. The default * uri is located under the empty string key. * * @return A map containing <prefix,uri> tuples. * @throws Exception If error processing "namespaces" element. */ public Map<String, String> namespaces() throws Exception { return readNamespaces(false); }
/** * Reads "namespace" elements from the catalog.xml file that correspond to isolated workspaces. * * <p>For each namespace element read, an entry of <prefix,uri> is created in a map. The default * uri is located under the empty string key. * * @return A map containing <prefix,uri> tuples. * @throws Exception If error processing "namespaces" element. */ public Map<String, String> isolatedNamespaces() throws Exception { return readNamespaces(true); }