#include <map>
#include <stack>
+#include <string>
#include <istream>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/sax/InputSource.hpp>
*
* @param url source of input
* @param systemId optional system identifier to attach to the source
+ * @param cacheTag optional pointer to string used for cache management
*/
- URLInputSource(const XMLCh* url, const char* systemId=NULL);
+ URLInputSource(const XMLCh* url, const char* systemId=NULL, std::string* cacheTag=NULL);
/**
* Constructor taking a DOM element supporting the following content:
*
* @param e DOM to supply configuration
* @param systemId optional system identifier to attach to the source
+ * @param cacheTag optional pointer to string used for cache management
*/
- URLInputSource(const xercesc::DOMElement* e, const char* systemId=NULL);
+ URLInputSource(const xercesc::DOMElement* e, const char* systemId=NULL, std::string* cacheTag=NULL);
/// @cond off
virtual xercesc::BinInputStream* makeStream() const;
/// @endcond
+ /** Element name used to signal a non-successful response when fetching a remote document. */
+ static const char asciiStatusCodeElementName[];
+
+ /** Element name used to signal a non-successful response when fetching a remote document. */
+ static const XMLCh utf16StatusCodeElementName[];
private:
#ifdef XMLTOOLING_LITE
xercesc::XMLURL m_url;
#else
+ std::string* m_cacheTag;
xmltooling::auto_ptr_char m_url;
const xercesc::DOMElement* m_root;
#endif