Go to the documentation of this file.
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;
void cacheGrammarFromParse(const bool newState)
Set the 'Grammar caching' flag.
Grammar * getGrammar(const XMLCh *const nameSpaceKey)
Retrieve the grammar that is associated with the specified namespace key.
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
char16_t XMLCh
Definition: Xerces_autoconf_config.hpp:120
void setIgnoreCachedDTD(const bool newValue)
Set the 'ignore cached DTD grammar' flag.
ErrTypes
Definition: XMLErrorReporter.hpp:49
void useCachedGrammarInParse(const bool newState)
Set the 'Use cached grammar' flag.
ErrorHandler * getErrorHandler()
Get a pointer to the error handler.
Definition: XercesDOMParser.hpp:664
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
void setXMLEntityResolver(XMLEntityResolver *const handler)
Set the entity resolver.
bool isUsingCachedGrammarInParse() const
Get the 'Use cached grammar' flag.
virtual ~XercesDOMParser()
Destructor.
const XMLCh * getURIText(unsigned int uriId) const
Returns the string corresponding to a URI id from the URI string pool.
bool getIgnoreCachedDTD() const
Get the 'ignore cached DTD grammar' flag.
XMLUInt64 XMLFileLoc
Definition: Xerces_autoconf_config.hpp:144
EntityResolver * getEntityResolver()
Get a pointer to the entity resolver.
Definition: XercesDOMParser.hpp:674
Definition: XMLResourceIdentifier.hpp:96
virtual void resetErrors()
Reset any error data before a new parse.
XMLFilePos getSrcOffset() const
Returns the current src offset within the input source.
virtual void startInputSource(const InputSource &inputSource)
Handle a 'start input source' event.
Definition: XercesDOMParser.hpp:655
Definition: XMLGrammarPool.hpp:44
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 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 ...
XMLUInt64 XMLFilePos
Definition: Xerces_autoconf_config.hpp:139
virtual void resetEntities()
Reset any entity handler information.
Definition: XercesDOMParser.hpp:650
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.
void resetDocumentPool()
Reset the documents vector pool and release all the associated memory back to the system.
virtual InputSource * resolveEntity(XMLResourceIdentifier *resourceIdentifier)
Resolve a public/system id.
Basic interface for resolving entities.
Definition: EntityResolver.hpp:87
virtual bool expandSystemId(const XMLCh *const systemId, XMLBuffer &toFill)
Expand a system id.
Definition: XercesDOMParser.hpp:644
This class implements the Document Object Model (DOM) interface.
Definition: AbstractDOMParser.hpp:62
XMLEntityResolver * getXMLEntityResolver()
Get a pointer to the entity resolver.
Definition: XercesDOMParser.hpp:684
#define PARSERS_EXPORT
Definition: XercesDefs.hpp:168
Revised interface for resolving entities.
Definition: XMLEntityResolver.hpp:100
XercesDOMParser(XMLValidator *const valToAdopt=0, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager, XMLGrammarPool *const gramPool=0)
Construct a XercesDOMParser, with an optional validator.
void setErrorHandler(ErrorHandler *const handler)
Set the error handler.
virtual void endInputSource(const InputSource &inputSource)=0
This method get called after the scanner has finished reading from the given input source while proce...
Configurable memory manager.
Definition: MemoryManager.hpp:40
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.
This class implements the Document Object Model (DOM) interface.
Definition: XercesDOMParser.hpp:48
void setEntityResolver(EntityResolver *const handler)
Set the entity resolver.
This abstract class provides the interface for all validators.
Definition: XMLValidator.hpp:53
Grammar * getRootGrammar()
Retrieve the grammar where the root element is declared.
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.
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.
virtual void resetEntities()=0
This method allows the entity handler to reset itself, so that it can be used again.
virtual void startInputSource(const InputSource &inputSource)=0
This method will be called before the scanner starts reading from an input source while processing ex...
void resetCachedGrammarPool()
This method allows the user to reset the pool of cached grammars.
Basic interface for SAX error handlers.
Definition: ErrorHandler.hpp:61