22#if !defined(XERCESC_INCLUDE_GUARD_XERCESDOMPARSER_HPP)
23#define XERCESC_INCLUDE_GUARD_XERCESDOMPARSER_HPP
27#include <xercesc/validators/common/Grammar.hpp>
398 const unsigned int errCode
399 ,
const XMLCh*
const msgDomain
401 ,
const XMLCh*
const errorText
402 ,
const XMLCh*
const systemId
403 ,
const XMLCh*
const publicId
458 const XMLCh*
const systemId
542 const Grammar::GrammarType grammarType,
543 const bool toCache =
false);
570 const Grammar::GrammarType grammarType,
571 const bool toCache =
false);
597 const Grammar::GrammarType grammarType,
598 const bool toCache =
false);
666 return fErrorHandler;
671 return fErrorHandler;
676 return fEntityResolver;
681 return fEntityResolver;
686 return fXMLEntityResolver;
691 return fXMLEntityResolver;
#define PARSERS_EXPORT
Definition: XercesDefs.hpp:168
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
uint16_t XMLCh
Definition: Xerces_autoconf_config.hpp:120
XMLUInt64 XMLFilePos
Definition: Xerces_autoconf_config.hpp:139
XMLUInt64 XMLFileLoc
Definition: Xerces_autoconf_config.hpp:144
This class implements the Document Object Model (DOM) interface.
Definition: AbstractDOMParser.hpp:62
Basic interface for resolving entities.
Definition: EntityResolver.hpp:87
Basic interface for SAX error handlers.
Definition: ErrorHandler.hpp:61
Configurable memory manager.
Definition: MemoryManager.hpp:40
virtual void startInputSource(const InputSource &inputSource)=0
This method will be called before the scanner starts reading from an input source while processing ex...
virtual bool expandSystemId(const XMLCh *const systemId, XMLBuffer &toFill)=0
This method allows the passes the scanned systemId to the entity handler, thereby giving it a chance ...
virtual void resetEntities()=0
This method allows the entity handler to reset itself, so that it can be used again.
virtual void endInputSource(const InputSource &inputSource)=0
This method get called after the scanner has finished reading from the given input source while proce...
Revised interface for resolving entities.
Definition: XMLEntityResolver.hpp:100
ErrTypes
Definition: XMLErrorReporter.hpp:49
Definition: XMLGrammarPool.hpp:44
Definition: XMLResourceIdentifier.hpp:96
This abstract class provides the interface for all validators.
Definition: XMLValidator.hpp:53
This class implements the Document Object Model (DOM) interface.
Definition: XercesDOMParser.hpp:48
virtual void startInputSource(const InputSource &inputSource)
Handle a 'start input source' event.
Definition: XercesDOMParser.hpp:655
Grammar * loadGrammar(const char *const systemId, const Grammar::GrammarType grammarType, const bool toCache=false)
Preparse schema grammar (XML Schema, DTD, etc.) via a file path or URL.
Grammar * getRootGrammar()
Retrieve the grammar where the root element is declared.
Grammar * loadGrammar(const InputSource &source, const Grammar::GrammarType grammarType, const bool toCache=false)
Preparse schema grammar (XML Schema, DTD, etc.) via an input source object.
virtual InputSource * resolveEntity(XMLResourceIdentifier *resourceIdentifier)
Resolve a public/system id.
void cacheGrammarFromParse(const bool newState)
Set the 'Grammar caching' flag.
XMLEntityResolver * getXMLEntityResolver()
Get a pointer to the entity resolver.
Definition: XercesDOMParser.hpp:684
void resetCachedGrammarPool()
This method allows the user to reset the pool of cached grammars.
bool getIgnoreCachedDTD() const
Get the 'ignore cached DTD grammar' flag.
virtual void resetErrors()
Reset any error data before a new parse.
Grammar * loadGrammar(const XMLCh *const systemId, const Grammar::GrammarType grammarType, const bool toCache=false)
Preparse schema grammar (XML Schema, DTD, etc.) via a file path or URL.
void setErrorHandler(ErrorHandler *const handler)
Set the error handler.
XercesDOMParser(XMLValidator *const valToAdopt=0, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager, XMLGrammarPool *const gramPool=0)
Construct a XercesDOMParser, with an optional validator.
void setIgnoreCachedDTD(const bool newValue)
Set the 'ignore cached DTD grammar' flag.
void resetDocumentPool()
Reset the documents vector pool and release all the associated memory back to the system.
bool isUsingCachedGrammarInParse() const
Get the 'Use cached grammar' flag.
void setEntityResolver(EntityResolver *const handler)
Set the entity resolver.
Grammar * getGrammar(const XMLCh *const nameSpaceKey)
Retrieve the grammar that is associated with the specified namespace key.
const XMLCh * getURIText(unsigned int uriId) const
Returns the string corresponding to a URI id from the URI string pool.
virtual void resetEntities()
Reset any entity handler information.
Definition: XercesDOMParser.hpp:650
virtual ~XercesDOMParser()
Destructor.
virtual bool expandSystemId(const XMLCh *const systemId, XMLBuffer &toFill)
Expand a system id.
Definition: XercesDOMParser.hpp:644
XMLFilePos getSrcOffset() const
Returns the current src offset within the input source.
void setXMLEntityResolver(XMLEntityResolver *const handler)
Set the entity resolver.
ErrorHandler * getErrorHandler()
Get a pointer to the error handler.
Definition: XercesDOMParser.hpp:664
void useCachedGrammarInParse(const bool newState)
Set the 'Use cached grammar' flag.
EntityResolver * getEntityResolver()
Get a pointer to the entity resolver.
Definition: XercesDOMParser.hpp:674
virtual void error(const unsigned int errCode, const XMLCh *const msgDomain, const XMLErrorReporter::ErrTypes errType, const XMLCh *const errorText, const XMLCh *const systemId, const XMLCh *const publicId, const XMLFileLoc lineNum, const XMLFileLoc colNum)
Handle errors reported from the parser.
virtual void endInputSource(const InputSource &inputSource)
Handle an end of input source event.
Definition: XercesDOMParser.hpp:639
bool isCachingGrammarFromParse() const
Get the 'Grammar caching' flag.