18#if !defined(XALANSOURCETREEPARSERLIAISON_HEADER_GUARD_1357924680)
19#define XALANSOURCETREEPARSERLIAISON_HEADER_GUARD_1357924680
36namespace XERCES_CPP_NAMESPACE
41 class SAX2XMLReaderImpl;
50class XalanSourceTreeDOMSupport;
51class XalanSourceTreeDocument;
62using xercesc::ContentHandler;
63using xercesc::DTDHandler;
64using xercesc::LexicalHandler;
65using xercesc::SAX2XMLReaderImpl;
92 return m_documentMap.getMemoryManager();
107 return m_poolAllText;
135 const InputSource&
reader,
162 virtual EntityResolver*
168 virtual XMLEntityResolver*
174 virtual ErrorHandler*
364 virtual SAX2XMLReaderImpl*
387 SAX2XMLReaderImpl* m_xmlReader;
#define XALAN_DEFAULT_MEMMGR
#define XALAN_XALANSOURCETREE_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Xalan implementation of a hashtable.
void setPoolAllText(bool fValue)
Set the value of the flag which determines if the data of all text nodes are pooled,...
virtual bool getIncludeIgnorableWhitespace() const
Get the 'include ignorable whitespace' flag.
bool getPoolAllText() const
Get the value of the flag which determines if the data of all text nodes are pooled,...
virtual void setExecutionContext(ExecutionContext &theContext)
Set the current ExecutionContext instance.
virtual void parseXMLStream(const InputSource &theInputSource, ContentHandler &theContentHandler, const XalanDOMString &theIdentifier, DTDHandler *theDTDHandler=0, LexicalHandler *theLexicalHandler=0)
Parse using a SAX2 ContentHandler, DTDHandler, and LexicalHandler.
MemoryManager & getMemoryManager()
Get a reference to the current MemoryManager instance.
virtual void setExternalNoNamespaceSchemaLocation(const XalanDOMChar *location)
This method sets the location for an external schema document for parsing.
virtual void setEntityResolver(EntityResolver *resolver)
This method installs the user-specified EntityResolver on the parser.
virtual void reset()
Reset the instance, freeing any XalanDocument instances created through parseXMLStream().
virtual ~XalanSourceTreeParserLiaison()
virtual bool getUseValidation() const
Get whether or not validation will be performed.
virtual const XalanDOMChar * getExternalNoNamespaceSchemaLocation() const
This method returns the location for an external schema document for parsing.
XalanMap< const XalanDocument *, XalanSourceTreeDocument * > DocumentMapType
virtual void setExternalSchemaLocation(const XalanDOMChar *location)
This method sets the location for an external schema document for parsing.
virtual void setXMLEntityResolver(XMLEntityResolver *resolver)
This method installs the user-specified XMLEntityResolver on the parser.
virtual DOMDocument_Type * createDOMFactory()
virtual ExecutionContext * getExecutionContext() const
Get a pointer to the current ExecutionContext instance, which may be null.
virtual void setIndent(int i)
Set the amount to indent when indent-result="yes".
XalanSourceTreeParserLiaison(XalanSourceTreeDOMSupport &theSupport, MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
Construct a XalanSourceTreeParserLiaison instance.
virtual int getIndent() const
Get the amount to indent when indent-result="yes".
virtual void destroyDocument(XalanDocument *theDocument)
Destroy the supplied XalanDocument instance.
XalanSourceTreeDocument * createXalanSourceTreeDocument()
Create a XalanSourceTreeDocument instance.
virtual void setDoNamespaces(bool newState)
This method allows users to enable or disable the parser's namespace processing.
XalanSourceTreeDocument * mapDocument(const XalanDocument *theDocument) const
Map a pointer to a XalanDocument instance to its implementation class pointer.
XalanSourceTreeParserLiaison(MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
Construct a XalanSourceTreeParserLiaison instance.
virtual XMLEntityResolver * getXMLEntityResolver() const
This method returns the installed XMLEntityResolver.
virtual void destroyDocument(DOMDocument_Type *theDocument)
virtual bool getExitOnFirstFatalError() const
This method returns the state of the parser's exit-on-First-Fatal-Error flag.
virtual ErrorHandler * getErrorHandler() const
This method returns the installed error handler.
virtual void setIncludeIgnorableWhitespace(bool include)
Set the 'include ignorable whitespace' flag.
virtual void setErrorHandler(ErrorHandler *handler)
This method installs the user-specified error handler.
virtual void parseXMLStream(const InputSource &inputSource, DocumentHandler &handler, const XalanDOMString &identifier=XalanDOMString(XalanMemMgrs::getDummyMemMgr()))
Parse the text pointed at by the reader as XML.
virtual SAX2XMLReaderImpl * createReader()
virtual const XalanDOMChar * getExternalSchemaLocation() const
This method returns the location for an external schema document for parsing.
virtual void setExitOnFirstFatalError(bool newState)
This method allows users to set the parser's behaviour when it encounters the first fatal error.
virtual EntityResolver * getEntityResolver() const
This method returns the installed EntityResolver.
virtual XalanDocument * parseXMLStream(const InputSource &reader, const XalanDOMString &identifier=XalanDOMString(XalanMemMgrs::getDummyMemMgr()))
Parse the text pointed at by the reader as XML, and return a DOM Document interface.
virtual void setUseValidation(bool b)
If set to true, validation will be performed.
virtual const XalanDOMString & getParserDescription(XalanDOMString &theResult) const
Return a string suitable for telling the user what parser is being used.
virtual bool getDoNamespaces() const
This method returns the state of the parser's namespace handling capability.
xercesc::DOMDocument DOMDocument_Type