18 #if !defined(XMLPARSERLIAISON_HEADER_GUARD_1357924680)
19 #define XMLPARSERLIAISON_HEADER_GUARD_1357924680
32 namespace XERCES_CPP_NAMESPACE
34 class DocumentHandler;
38 class XMLEntityResolver;
52 using xercesc::DocumentHandler;
53 using xercesc::EntityResolver;
54 using xercesc::ErrorHandler;
55 using xercesc::InputSource;
56 using xercesc::XMLEntityResolver;
102 virtual MemoryManager&
134 const InputSource& inputSource,
153 const InputSource& inputSource,
154 DocumentHandler& handler,
217 virtual EntityResolver*
240 virtual XMLEntityResolver*
263 virtual ErrorHandler*
281 ErrorHandler* theErrorHandler = 0) :
282 m_liaison(theLiaison),
283 m_errorHandler(theErrorHandler)
287 theLiaison->setErrorHandler(theErrorHandler);
295 m_liaison->setErrorHandler(m_errorHandler);
302 ErrorHandler* theErrorHandler)
304 m_liaison = theLiaison;
306 m_errorHandler = theErrorHandler;
318 ErrorHandler* m_errorHandler;
331 m_liaison(theLiaison),
332 m_document(theDocument)
340 m_liaison.destroyDocument(m_document);
#define XALAN_XMLSUPPORT_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
EnsureDestroyDocument(XMLParserLiaison &theLiaison, XalanDocument *theDocument)
XalanDocument * release()
XalanDocument * get() const
EnsureResetErrorHandler(XMLParserLiaison *theLiaison=0, ErrorHandler *theErrorHandler=0)
~EnsureResetErrorHandler()
void set(XMLParserLiaison *theLiaison, ErrorHandler *theErrorHandler)
virtual void setIndent(int i)=0
Set the amount to indent when indent-result="yes".
virtual void setUseValidation(bool b)=0
If set to true, validation will be performed.
virtual EntityResolver * getEntityResolver() const =0
This method returns the installed EntityResolver.
virtual void reset()=0
Reset the instance, freeing any XalanDocument instances created through parseXMLStream().
virtual const XalanDOMString & getParserDescription(XalanDOMString &theResult) const =0
Return a string suitable for telling the user what parser is being used.
virtual int getIndent() const =0
Get the amount to indent when indent-result="yes".
virtual MemoryManager & getMemoryManager()=0
Get a reference to the current MemoryManager instance.
virtual void setXMLEntityResolver(XMLEntityResolver *resolver)=0
This method installs the user-specified XMLEntityResolver on the parser.
virtual void setEntityResolver(EntityResolver *resolver)=0
This method installs the user-specified EntityResolver on the parser.
virtual ErrorHandler * getErrorHandler() const =0
This method returns the installed error handler.
virtual void parseXMLStream(const InputSource &inputSource, DocumentHandler &handler, const XalanDOMString &identifier)=0
Parse the text pointed at by the reader as XML.
virtual bool getUseValidation() const =0
Get whether or not validation will be performed.
virtual void setErrorHandler(ErrorHandler *handler)=0
This method installs the user-specified error handler.
virtual void destroyDocument(XalanDocument *theDocument)=0
Destroy the supplied XalanDocument instance.
virtual XMLEntityResolver * getXMLEntityResolver() const =0
This method returns the installed XMLEntityResolver.
virtual ExecutionContext * getExecutionContext() const =0
Get a pointer to the current ExecutionContext instance, which may be null.
virtual void setExecutionContext(ExecutionContext &theContext)=0
Set the current ExecutionContext instance.
virtual ~XMLParserLiaison()
virtual XalanDocument * parseXMLStream(const InputSource &inputSource, const XalanDOMString &identifier)=0
Parse the text pointed at by the reader as XML, and return a DOM Document interface.
xercesc::ErrorHandler ErrorHandlerType
xercesc::EntityResolver EntityResolverType
xercesc::InputSource InputSourceType
xercesc::DocumentHandler DocumentHandlerType