XmlEventReader::setExpandEntities

#include <DbXml.hpp>

virtual void XmlEventReader::setExpandEntities(bool value)

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.

Parameters

value

Indicates whether entities are expanded. A value of true (the default) causes the entity to be expanded.

Class

XmlEventReader

See Also

XmlEventReader Methods