XmlEventReader::setExpandEntities

API Ref

#include <DbXml.hpp>

virtual void XmlEventReader::setExpandEntities(bool value)

virtual bool XmlEventReader::getExpandEntities() const


Description: XmlEventReader::setExpandEntities

By default, entities are expanded when XML is parsed, and those entities are reported as their expanded events. If the XmlEventReader::getReportEntityInfo method returns true, it is possible to suppress the expanded events, receiving just the StartEntityReference and EndEntityReference events associated with the original entity reference. This can be useful for serialization of XML that includes such expanded entities. It allows the entity references to be restored during serialization. Most of the internal implementations of XmlEventReader have this Capability. By default, expanded events are reported.


Description: XmlEventReader::setExpandEntities(bool value)

Sets whether the XmlEventReader should include events associated with expanded entities.


Description: XmlEventReader::getExpandEntities() const

Gets whether the XmlEventReader will include events associated with expanded entities. Default is true.

Parameters

value
Use false to suppress events.

APIRef

Copyright (c) 1996,2007 Oracle. All rights reserved.