zorba::XmlDataManager::ParseOptions

#include <zorba/xmldatamanager.h>

The ParseOptions class stores various properties that affect how a document is parsed. An instance of this class is passed as input to the parseXML function.

Public Functions

bool

isDtdValidationEnabled() const

Returns true if dtd validation is enabled, false otherwise.

bool

isExternalEntityProcessingEnabled() const

Returns true if external entity processig is enabled, false otherwise.

ParseOptions()

void

setDtdValidation(bool aEnable)

Set the property enableDtd, which specifies whether the document should be validated against its associated DTD (if any).

void

setExternalEntityProcessing(bool aEnable)

Set the property to enable or disable processing of XML external entities.

~ParseOptions()

Private Attributes

theDtdValidation

bool theDtdValidation

theExternalEntityProcessing

bool theExternalEntityProcessing

Public Functions

isDtdValidationEnabled

bool isDtdValidationEnabled() const

Returns true if dtd validation is enabled, false otherwise.

isExternalEntityProcessingEnabled

bool isExternalEntityProcessingEnabled() const

Returns true if external entity processig is enabled, false otherwise.

ParseOptions

 ParseOptions()

setDtdValidation

void setDtdValidation(bool aEnable)

Set the property enableDtd, which specifies whether the document should be validated against its associated DTD (if any).

setExternalEntityProcessing

void setExternalEntityProcessing(bool aEnable)

Set the property to enable or disable processing of XML external entities.

If the option is enabled, the input must conform to the syntax _extParsedEnt_ (production [78] in XML 1.0); and since there is no DTD, the content must include no entity references. The result of the function call is a sequence of nodes.

~ParseOptions

 ~ParseOptions()