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