Xalan-C++ API Reference  1.12.0
Classes | Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
xalanc::XercesParserLiaison Class Reference

#include <xalanc/XercesParserLiaison/XercesParserLiaison.hpp>

Inheritance diagram for xalanc::XercesParserLiaison:
[legend]
Collaboration diagram for xalanc::XercesParserLiaison:
[legend]

Classes

struct  DocumentEntry
 

Public Types

typedef xercesc::SAXParser SAXParserType
 
typedef XalanMap< const XalanDocument *, DocumentEntryDocumentMapType
 
typedef xercesc::XercesDOMParser DOMParserType
 

Public Member Functions

 XercesParserLiaison (XercesDOMSupport &theSupport, MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
 Construct a XercesParserLiaison instance. More...
 
 XercesParserLiaison (MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
 Construct a XercesParserLiaison instance. More...
 
virtual ~XercesParserLiaison ()
 
MemoryManager & getMemoryManager ()
 Get a reference to the current MemoryManager instance. More...
 
virtual void reset ()
 Reset the instance, freeing any XalanDocument instances created through parseXMLStream(). More...
 
virtual ExecutionContextgetExecutionContext () const
 Get a pointer to the current ExecutionContext instance, which may be null. More...
 
virtual void setExecutionContext (ExecutionContext &theContext)
 Set the current ExecutionContext instance. More...
 
virtual XalanDocumentparseXMLStream (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. More...
 
virtual void parseXMLStream (const InputSource &urlInputSource, DocumentHandler &handler, const XalanDOMString &identifier=XalanDOMString(XalanMemMgrs::getDummyMemMgr()))
 Parse the text pointed at by the reader as XML. More...
 
virtual void destroyDocument (XalanDocument *theDocument)
 Destroy the supplied XalanDocument instance. More...
 
virtual int getIndent () const
 Get the amount to indent when indent-result="yes". More...
 
virtual void setIndent (int i)
 Set the amount to indent when indent-result="yes". More...
 
virtual bool getUseValidation () const
 Get whether or not validation will be performed. More...
 
virtual void setUseValidation (bool b)
 If set to true, validation will be performed. More...
 
virtual const XalanDOMStringgetParserDescription (XalanDOMString &theResult) const
 Return a string suitable for telling the user what parser is being used. More...
 
virtual EntityResolver * getEntityResolver () const
 This method returns the installed EntityResolver. More...
 
virtual void setEntityResolver (EntityResolver *resolver)
 This method installs the user-specified EntityResolver on the parser. More...
 
virtual XMLEntityResolver * getXMLEntityResolver () const
 This method returns the installed XMLEntityResolver. More...
 
virtual void setXMLEntityResolver (XMLEntityResolver *resolver)
 This method installs the user-specified XMLEntityResolver on the parser. More...
 
virtual ErrorHandler * getErrorHandler () const
 This method returns the installed error handler. More...
 
virtual void setErrorHandler (ErrorHandler *handler)
 This method installs the user-specified error handler. More...
 
virtual DOMDocument_TypecreateDOMFactory ()
 Create an instance of the Xerces default document that is suitable as a raw document. More...
 
virtual void destroyDocument (DOMDocument_Type *theDocument)
 Destroy an instance created by a call to createDOMFactory(). More...
 
virtual bool getIncludeIgnorableWhitespace () const
 Get the 'include ignorable whitespace' flag. More...
 
virtual void setIncludeIgnorableWhitespace (bool include)
 Set the 'include ignorable whitespace' flag. More...
 
virtual bool getDoNamespaces () const
 This method returns the state of the parser's namespace handling capability. More...
 
virtual void setDoNamespaces (bool newState)
 This method allows users to enable or disable the parser's namespace processing. More...
 
virtual bool getExitOnFirstFatalError () const
 This method returns the state of the parser's exit-on-First-Fatal-Error flag. More...
 
virtual void setExitOnFirstFatalError (bool newState)
 This method allows users to set the parser's behaviour when it encounters the first fatal error. More...
 
virtual const XalanDOMChar * getExternalSchemaLocation () const
 This method returns the location for an external schema document for parsing. More...
 
virtual void setExternalSchemaLocation (const XalanDOMChar *location)
 This method sets the location for an external schema document for parsing. More...
 
virtual const XalanDOMChar * getExternalNoNamespaceSchemaLocation () const
 This method returns the location for an external schema document for parsing. More...
 
virtual void setExternalNoNamespaceSchemaLocation (const XalanDOMChar *location)
 This method sets the location for an external schema document for parsing. More...
 
XalanDocumentcreateDocument (const DOMDocument_Type *theXercesDocument)
 Create a XalanDocument proxy for an existing Xerces document. More...
 
XalanDocumentcreateDocument (const DOMDocument_Type *theXercesDocument, bool threadSafe, bool buildWrapper, bool buildMaps=false)
 Create a XalanDocument proxy for an existing Xerces document. More...
 
XercesDocumentWrappermapDocumentToWrapper (const XalanDocument *theDocument) const
 Map a pointer to a XalanDocument instance to its implementation class pointer. More...
 
const DOMDocument_TypemapToXercesDocument (const XalanDocument *theDocument) const
 Map a pointer to a XalanDocument instance to its corresponding class pointer. More...
 
virtual void warning (const SAXParseExceptionType &exception)
 
virtual void error (const SAXParseExceptionType &exception)
 
virtual void fatalError (const SAXParseExceptionType &exception)
 
virtual void resetErrors ()
 
bool getBuildBridgeNodes () const
 This API is deprecated. More...
 
void setBuildBridgeNodes (bool newState)
 This API is deprecated. More...
 
bool getBuildWrapperNodes () const
 This functions returns the state of the liaison's build-wrapper-nodes flag. More...
 
void setBuildWrapperNodes (bool newState)
 This functions sets the state of the liaison's build-wrapper-nodes flag. More...
 
bool getThreadSafe () const
 This functions returns the state of the liaison's thread-safe flag. More...
 
void setThreadSafe (bool newState)
 This functions sets the state of the liaison's thread-safe flag. More...
 
bool getBuildMaps () const
 This functions returns the state of the liaison's buildMaps flag. More...
 
void setBuildMaps (bool newState)
 This functions sets the state of the liaison's buildMaps flag. More...
 
- Public Member Functions inherited from xalanc::XMLParserLiaison
 XMLParserLiaison ()
 
virtual ~XMLParserLiaison ()
 

Protected Member Functions

XercesDocumentWrapperdoCreateDocument (const DOMDocument_Type *theXercesDocument, bool threadSafe, bool buildWrapper, bool buildMaps, bool isOwned)
 Create a XalanDocument proxy for an existing Xerces document. More...
 

Static Protected Member Functions

static void formatErrorMessage (const SAXParseExceptionType &e, XalanDOMString &theMessage)
 

Detailed Description

Definition at line 74 of file XercesParserLiaison.hpp.

Member Typedef Documentation

◆ DocumentMapType

Definition at line 538 of file XercesParserLiaison.hpp.

◆ DOMParserType

typedef xercesc::XercesDOMParser xalanc::XercesParserLiaison::DOMParserType

Definition at line 678 of file XercesParserLiaison.hpp.

◆ SAXParserType

typedef xercesc::SAXParser xalanc::XercesParserLiaison::SAXParserType

Definition at line 81 of file XercesParserLiaison.hpp.

Constructor & Destructor Documentation

◆ XercesParserLiaison() [1/2]

xalanc::XercesParserLiaison::XercesParserLiaison ( XercesDOMSupport theSupport,
MemoryManager &theManager  XALAN_DEFAULT_MEMMGR 
)

Construct a XercesParserLiaison instance.

Parameters
theSupportinstance of DOMSupport object
Deprecated:
This constructor is deprecated. Use the next constructor instead.

◆ XercesParserLiaison() [2/2]

xalanc::XercesParserLiaison::XercesParserLiaison ( MemoryManager &theManager  XALAN_DEFAULT_MEMMGR)

Construct a XercesParserLiaison instance.

◆ ~XercesParserLiaison()

virtual xalanc::XercesParserLiaison::~XercesParserLiaison ( )
virtual

Member Function Documentation

◆ createDocument() [1/2]

XalanDocument* xalanc::XercesParserLiaison::createDocument ( const DOMDocument_Type theXercesDocument)
inline

Create a XalanDocument proxy for an existing Xerces document.

The parser liaison owns the instance, and you must not delete it. The liaison will delete it when reset() is called, or the liaison is destroyed.

Parameters
theXercesDocumentThe Xerces document.
Returns
a pointer to a new XalanDocument-derived instance.

Definition at line 371 of file XercesParserLiaison.hpp.

◆ createDocument() [2/2]

XalanDocument* xalanc::XercesParserLiaison::createDocument ( const DOMDocument_Type theXercesDocument,
bool  threadSafe,
bool  buildWrapper,
bool  buildMaps = false 
)

Create a XalanDocument proxy for an existing Xerces document.

The parser liaison owns the instance, and you must not delete it. The liaison will delete it when reset() is called, or the liaison is destroyed.

Parameters
theXercesDocumentThe Xerces document.
threadSafeIf true, read access to the tree will be thread-safe (implies buildWrapper == true).
buildWrapperIf true, the entire wrapper structure is built.
buildMapsIf true, the map of Xerces to Xalan nodes is always built.
Returns
a pointer to a new XalanDocument-derived instance.

◆ createDOMFactory()

virtual DOMDocument_Type* xalanc::XercesParserLiaison::createDOMFactory ( )
virtual

Create an instance of the Xerces default document that is suitable as a raw document.

The new document instance is owned by this instance and will be destroyed when this instance goes out of scope, or by an explicit call to destroyDocument()

Returns
a pointer to the new instance

◆ destroyDocument() [1/2]

virtual void xalanc::XercesParserLiaison::destroyDocument ( DOMDocument_Type theDocument)
virtual

Destroy an instance created by a call to createDOMFactory().

@theDocument a pointer to the instance to be destroyed

◆ destroyDocument() [2/2]

virtual void xalanc::XercesParserLiaison::destroyDocument ( XalanDocument theDocument)
virtual

Destroy the supplied XalanDocument instance.

It must be an instance that was created by a previous call to parseXMLStream().

Parameters
theDocumentThe XalanDocument instance to destroy.

Implements xalanc::XMLParserLiaison.

◆ doCreateDocument()

XercesDocumentWrapper* xalanc::XercesParserLiaison::doCreateDocument ( const DOMDocument_Type theXercesDocument,
bool  threadSafe,
bool  buildWrapper,
bool  buildMaps,
bool  isOwned 
)
protected

Create a XalanDocument proxy for an existing Xerces document.

Parameters
theXercesDocumentThe Xerces document.
threadSafeIf true, read access to the tree will be thread-safe (implies buildBridge == true).
buildWrapperIf true, the entire bridge structure is built.
buildMapsIf true, the map of Xerces to Xalan nodes is always built.
Returns
a pointer to a new XercesDocumentWrapper instance.

◆ error()

virtual void xalanc::XercesParserLiaison::error ( const SAXParseExceptionType exception)
virtual

◆ fatalError()

virtual void xalanc::XercesParserLiaison::fatalError ( const SAXParseExceptionType exception)
virtual

◆ formatErrorMessage()

static void xalanc::XercesParserLiaison::formatErrorMessage ( const SAXParseExceptionType e,
XalanDOMString theMessage 
)
staticprotected

◆ getBuildBridgeNodes()

bool xalanc::XercesParserLiaison::getBuildBridgeNodes ( ) const
inline

This API is deprecated.

This functions returns the state of the liaison's build-bridge-nodes flag.

Deprecated:
The Xerces DOM bridge is deprecated.
Returns
true, if the bridge nodes are automatically built, false otherwise.

Definition at line 549 of file XercesParserLiaison.hpp.

◆ getBuildMaps()

bool xalanc::XercesParserLiaison::getBuildMaps ( ) const
inline

This functions returns the state of the liaison's buildMaps flag.

If true, maps will be created to allow mapping of Xalan<->Xerces mapping in both directions for XercesWrapper classes.

Returns
true, if the new documents will be built with Maps

Definition at line 655 of file XercesParserLiaison.hpp.

◆ getBuildWrapperNodes()

bool xalanc::XercesParserLiaison::getBuildWrapperNodes ( ) const
inline

This functions returns the state of the liaison's build-wrapper-nodes flag.

Returns
true, if the wrapper nodes are automatically built, false otherwise.

Definition at line 584 of file XercesParserLiaison.hpp.

◆ getDoNamespaces()

virtual bool xalanc::XercesParserLiaison::getDoNamespaces ( ) const
virtual

This method returns the state of the parser's namespace handling capability.

Returns
true, if the parser is currently configured to understand namespaces, false otherwise.
See also
setDoNamespaces

◆ getEntityResolver()

virtual EntityResolver* xalanc::XercesParserLiaison::getEntityResolver ( ) const
virtual

This method returns the installed EntityResolver.

Returns
The pointer to the installed EntityResolver object.

Implements xalanc::XMLParserLiaison.

◆ getErrorHandler()

virtual ErrorHandler* xalanc::XercesParserLiaison::getErrorHandler ( ) const
virtual

This method returns the installed error handler.

Returns
The pointer to the installed error handler object.

Implements xalanc::XMLParserLiaison.

◆ getExecutionContext()

virtual ExecutionContext* xalanc::XercesParserLiaison::getExecutionContext ( ) const
virtual

Get a pointer to the current ExecutionContext instance, which may be null.

Returns
A pointer to the current ExecutionContext, if any.

Implements xalanc::XMLParserLiaison.

◆ getExitOnFirstFatalError()

virtual bool xalanc::XercesParserLiaison::getExitOnFirstFatalError ( ) const
virtual

This method returns the state of the parser's exit-on-First-Fatal-Error flag.

Returns
true, if the parser is currently configured to exit on the first fatal error, false otherwise.
See also
setExitOnFirstFatalError

◆ getExternalNoNamespaceSchemaLocation()

virtual const XalanDOMChar* xalanc::XercesParserLiaison::getExternalNoNamespaceSchemaLocation ( ) const
virtual

This method returns the location for an external schema document for parsing.

Returns
A string representing the location of the external schema document

◆ getExternalSchemaLocation()

virtual const XalanDOMChar* xalanc::XercesParserLiaison::getExternalSchemaLocation ( ) const
virtual

This method returns the location for an external schema document for parsing.

Returns
A string representing the location of the external schema document

◆ getIncludeIgnorableWhitespace()

virtual bool xalanc::XercesParserLiaison::getIncludeIgnorableWhitespace ( ) const
virtual

Get the 'include ignorable whitespace' flag.

This method returns the state of the parser's include ignorable whitespace flag.

Returns
'true' if the include ignorable whitespace flag is set on the parser, 'false' otherwise.
See also
setIncludeIgnorableWhitespace

◆ getIndent()

virtual int xalanc::XercesParserLiaison::getIndent ( ) const
virtual

Get the amount to indent when indent-result="yes".

Deprecated:
Returns
number of characters to indent

Implements xalanc::XMLParserLiaison.

◆ getMemoryManager()

MemoryManager& xalanc::XercesParserLiaison::getMemoryManager ( )
inlinevirtual

Get a reference to the current MemoryManager instance.

Returns
A pointer to the current ExecutionContext, if any.

Implements xalanc::XMLParserLiaison.

Definition at line 106 of file XercesParserLiaison.hpp.

◆ getParserDescription()

virtual const XalanDOMString& xalanc::XercesParserLiaison::getParserDescription ( XalanDOMString theResult) const
virtual

Return a string suitable for telling the user what parser is being used.

Returns
string describing parser

Implements xalanc::XMLParserLiaison.

◆ getThreadSafe()

bool xalanc::XercesParserLiaison::getThreadSafe ( ) const
inline

This functions returns the state of the liaison's thread-safe flag.

If true, documents created will be safe when data is read. By default, documents are not thread-safe.

Note – modifications are never synchronized.

Returns
true, if the new documents will be thread safe, false otherwise.

Definition at line 620 of file XercesParserLiaison.hpp.

◆ getUseValidation()

virtual bool xalanc::XercesParserLiaison::getUseValidation ( ) const
virtual

Get whether or not validation will be performed.

Validation is off by default.

Returns
true to perform validation

Implements xalanc::XMLParserLiaison.

◆ getXMLEntityResolver()

virtual XMLEntityResolver* xalanc::XercesParserLiaison::getXMLEntityResolver ( ) const
virtual

This method returns the installed XMLEntityResolver.

Returns
The pointer to the installed XMLEntityResolver object.

Implements xalanc::XMLParserLiaison.

◆ mapDocumentToWrapper()

XercesDocumentWrapper* xalanc::XercesParserLiaison::mapDocumentToWrapper ( const XalanDocument theDocument) const

Map a pointer to a XalanDocument instance to its implementation class pointer.

Normally, you should have no reason for doing this. The liaison will return a null pointer if it did not create the instance passed.

Parameters
theDocumentA pointer to a XalanDocument instance.
Returns
A pointer to the XercesDocumentWrapper instance.

◆ mapToXercesDocument()

const DOMDocument_Type* xalanc::XercesParserLiaison::mapToXercesDocument ( const XalanDocument theDocument) const

Map a pointer to a XalanDocument instance to its corresponding class pointer.

Normally, you should have no reason for doing this. The liaison will return a null pointer if it did not create the instance passed.

Parameters
theDocumentA pointer to a XalanDocument instance.
Returns
A pointer to the XercesDocumentBridge instance.

◆ parseXMLStream() [1/2]

virtual XalanDocument* xalanc::XercesParserLiaison::parseXMLStream ( const InputSource &  inputSource,
const XalanDOMString identifier = XalanDOMString(XalanMemMgrs::getDummyMemMgr()) 
)
virtual

Parse the text pointed at by the reader as XML, and return a DOM Document interface.

It is recommended that you pass in some sort of recognizable name, such as the filename or URI, with which the reader can be recognized if the parse fails.

The liaison owns the XalanDocument instance, and will delete it when asked (see DestroyDocument()), or when the liaison is reset, or goes out of scope.

This function is not reentrant, so you cannot call it again until the current call exits.

Parameters
readerstream that should hold valid XML
identifierused for diagnostic purposes only, some sort of identification for error reporting, default an empty string
Returns
DOM document created

Implements xalanc::XMLParserLiaison.

◆ parseXMLStream() [2/2]

virtual void xalanc::XercesParserLiaison::parseXMLStream ( const InputSource &  inputSource,
DocumentHandler &  handler,
const XalanDOMString identifier = XalanDOMString(XalanMemMgrs::getDummyMemMgr()) 
)
virtual

Parse the text pointed at by the reader as XML.

It is recommended that you pass in some sort of recognizable name, such as the filename or URI, with which the reader can be recognized if the parse fails.

This function is reentrant, so you can call it again before any other call exits. However, it is not thread-safe.

Parameters
inputSourceinput source that should hold valid XML
handlerinstance of a DocumentHandler
identifierused for diagnostic purposes only, some sort of identification for error reporting, default an empty string

Implements xalanc::XMLParserLiaison.

◆ reset()

virtual void xalanc::XercesParserLiaison::reset ( )
virtual

Reset the instance, freeing any XalanDocument instances created through parseXMLStream().

Implements xalanc::XMLParserLiaison.

◆ resetErrors()

virtual void xalanc::XercesParserLiaison::resetErrors ( )
virtual

◆ setBuildBridgeNodes()

void xalanc::XercesParserLiaison::setBuildBridgeNodes ( bool  newState)
inline

This API is deprecated.

This functions sets the state of the liaison's build-bridge-nodes flag. This flag must be set for the document to be thread safe. It can also be set to true to increase performance. If this flag is set to false, then the thread-safe flag will also be set to false.

Deprecated:
The Xerces DOM bridge is deprecated.
Parameters
newStateThe new state for the flag.

Definition at line 568 of file XercesParserLiaison.hpp.

◆ setBuildMaps()

void xalanc::XercesParserLiaison::setBuildMaps ( bool  newState)
inline

This functions sets the state of the liaison's buildMaps flag.

When this flag is true, maps will be built providing Xerces<->Xalan mapping in Wrapper classes.

Note
The maps created use a large amount of memory. If only Xalan->Xerces node mapping is required, do not set this to true.
Parameters
newStateThe new state for the flag.

Definition at line 673 of file XercesParserLiaison.hpp.

◆ setBuildWrapperNodes()

void xalanc::XercesParserLiaison::setBuildWrapperNodes ( bool  newState)
inline

This functions sets the state of the liaison's build-wrapper-nodes flag.

This flag must be set for the document to be thread safe. It can also be set to true to increase performance. If this flag is set to false, then the thread-safe flag will also be set to false.

Parameters
newStateThe new state for the flag.

Definition at line 600 of file XercesParserLiaison.hpp.

◆ setDoNamespaces()

virtual void xalanc::XercesParserLiaison::setDoNamespaces ( bool  newState)
virtual

This method allows users to enable or disable the parser's namespace processing.

When set to true, parser starts enforcing all the constraints / rules specified by the NameSpace specification.

The parser's default state is: false.

This flag is ignored by the underlying scanner if the installed validator indicates that namespace constraints should be enforced.

Parameters
newStateThe value specifying whether NameSpace rules should be enforced or not.
See also
getDoNamespaces

◆ setEntityResolver()

virtual void xalanc::XercesParserLiaison::setEntityResolver ( EntityResolver *  resolver)
virtual

This method installs the user-specified EntityResolver on the parser.

It allows applications to trap and redirect calls to external entities.

A call to setEntityResolver with a non-null pointer will uninstall any XMLEntityResolver previously installed.

Parameters
handlerA pointer to the EntityResolver to be called when the parser encounters references to external entities.

Implements xalanc::XMLParserLiaison.

◆ setErrorHandler()

virtual void xalanc::XercesParserLiaison::setErrorHandler ( ErrorHandler *  handler)
virtual

This method installs the user-specified error handler.

Parameters
handlerA pointer to the error handler to be called upon error.

Implements xalanc::XMLParserLiaison.

◆ setExecutionContext()

virtual void xalanc::XercesParserLiaison::setExecutionContext ( ExecutionContext theContext)
virtual

Set the current ExecutionContext instance.

@parameter theContext A reference to the new ExecutionContext instance.

Implements xalanc::XMLParserLiaison.

◆ setExitOnFirstFatalError()

virtual void xalanc::XercesParserLiaison::setExitOnFirstFatalError ( bool  newState)
virtual

This method allows users to set the parser's behaviour when it encounters the first fatal error.

If set to true, the parser will exit at the first fatal error. If false, then it will report the error and continue processing.

The default value is 'true' and the parser exits on the first fatal error.

Parameters
newStateThe value specifying whether the parser should continue or exit when it encounters the first fatal error.
See also
getExitOnFirstFatalError

◆ setExternalNoNamespaceSchemaLocation()

virtual void xalanc::XercesParserLiaison::setExternalNoNamespaceSchemaLocation ( const XalanDOMChar *  location)
virtual

This method sets the location for an external schema document for parsing.

Parameters
locationA string representing the location of the external schema document

◆ setExternalSchemaLocation()

virtual void xalanc::XercesParserLiaison::setExternalSchemaLocation ( const XalanDOMChar *  location)
virtual

This method sets the location for an external schema document for parsing.

Parameters
locationA string representing the location of the external schema document

◆ setIncludeIgnorableWhitespace()

virtual void xalanc::XercesParserLiaison::setIncludeIgnorableWhitespace ( bool  include)
virtual

Set the 'include ignorable whitespace' flag.

This method allows the user to specify whether a validating parser should include ignorable whitespaces as text nodes. It has no effect on non-validating parsers which always include non-markup text.

When set to true (also the default), ignorable whitespaces will be added to the DOM tree as text nodes. The method DOMText::isWhitespace will return true for those text nodes only.

When set to false, all ignorable whitespace will be discarded and no text node is added to the DOM tree. Note: applications intended to process the "xml:space" attribute should not set this flag to false.

Parameters
includeThe new state of the include ignorable whitespace flag.
See also
getIncludeIgnorableWhitespace

◆ setIndent()

virtual void xalanc::XercesParserLiaison::setIndent ( int  i)
virtual

Set the amount to indent when indent-result="yes".

Deprecated:
Parameters
inumber of characters to indent

Implements xalanc::XMLParserLiaison.

◆ setThreadSafe()

void xalanc::XercesParserLiaison::setThreadSafe ( bool  newState)
inline

This functions sets the state of the liaison's thread-safe flag.

This flag must be set for the document to be thread safe. If this flag is set to true, then the build-bridge-nodes flag will also be set to true.

Parameters
newStateThe new state for the flag.

Definition at line 636 of file XercesParserLiaison.hpp.

◆ setUseValidation()

virtual void xalanc::XercesParserLiaison::setUseValidation ( bool  b)
virtual

If set to true, validation will be performed.

Validation is off by default.

Parameters
btrue to perform validation

Implements xalanc::XMLParserLiaison.

◆ setXMLEntityResolver()

virtual void xalanc::XercesParserLiaison::setXMLEntityResolver ( XMLEntityResolver *  resolver)
virtual

This method installs the user-specified XMLEntityResolver on the parser.

It allows applications to trap and redirect calls to external entities.

A call to setXMLEntityResolver with a non-null pointer will uninstall any EntityResolver previously installed.

Parameters
handlerA pointer to the entity resolver to be called when the parser encounters references to external entities.

Implements xalanc::XMLParserLiaison.

◆ warning()

virtual void xalanc::XercesParserLiaison::warning ( const SAXParseExceptionType exception)
virtual

The documentation for this class was generated from the following file: