#include <xmltooling/unicode.h>
#include <map>
+#include <memory>
#include <stack>
#include <string>
#include <istream>
xercesc::DOMDocument* parse(std::istream& is);
/**
+ * Load OASIS catalog files to map schema namespace URIs to filenames.
+ *
+ * <p>This does not provide real catalog support; only the <uri> element
+ * is supported to map from a namespace URI to a relative path or file:// URI.
+ *
+ * <p>Multiple files can be specified using a platform-specific path delimiter.
+ *
+ * @param pathname path to one or more catalog files
+ * @return true iff the catalogs were successfully processed
+ */
+ bool loadCatalogs(const char* pathnames);
+
+ /**
* Load an OASIS catalog file to map schema namespace URIs to filenames.
*
- * This does not provide real catalog support; only the <uri> element
+ * <p>This does not provide real catalog support; only the <uri> 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 char* pathname);
+ bool loadCatalog(const char* pathnames);
/**
* Load an OASIS catalog file to map schema namespace URIs to filenames.
#else
std::stack<xercesc::DOMBuilder*> m_pool;
#endif
- Mutex* m_lock;
- xercesc::SecurityManager* m_security;
+ std::auto_ptr<Mutex> m_lock;
+ std::auto_ptr<xercesc::SecurityManager> m_security;
};
/**