Add ASCII loadCatalog method.
authorScott Cantor <cantor.2@osu.edu>
Mon, 14 Nov 2011 15:01:17 +0000 (15:01 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 14 Nov 2011 15:01:17 +0000 (15:01 +0000)
xmltooling/util/ParserPool.cpp
xmltooling/util/ParserPool.h

index 576f3f7..72156c0 100644 (file)
@@ -236,6 +236,12 @@ bool ParserPool::loadSchema(const XMLCh* nsURI, const XMLCh* pathname)
     return true;
 }
 
+bool ParserPool::loadCatalog(const char* pathname)
+{
+    auto_ptr_XMLCh temp(pathname);
+    return loadCatalog(temp.get());
+}
+
 bool ParserPool::loadCatalog(const XMLCh* pathname)
 {
 #if _DEBUG
index c3067ac..8dee873 100644 (file)
@@ -114,6 +114,17 @@ namespace xmltooling {
          * @param pathname  path to a catalog file
          * @return true iff the catalog was successfully processed
          */
+        bool loadCatalog(const char* pathname);
+
+        /**
+         * Load an OASIS catalog file to map schema namespace URIs to filenames.
+         *
+         * This does not provide real catalog support; only the &lt;uri&gt; element
+         * is supported to map from a namespace URI to a relative path or file:// URI.
+         *
+         * @param pathname  path to a catalog file
+         * @return true iff the catalog was successfully processed
+         */
         bool loadCatalog(const XMLCh* pathname);
 
         /**