#include <DbXml.hpp> virtual bool XmlEventReader::needsEntityEscape(int index = 0) const
If the current event is Characters, and XmlEventReader::hasEntityEscapeInfo is true, returns whether the current text string requires escaping of entities for XML serialization.
If the current event is StartElement, and XmlEventReader::hasEntityEscapeInfo is true, returns whether the attribute value specified by the index parameter requires escaping of entities for XML serialization.
The XmlEventReader::needsEntityEscape
method
may fail and throw
XmlException
, encapsulating one of the
following non-zero errors:
An error occurred during processing of an XmlEventReader object. Most likely the error is requesting state that is not valid in the context of the current event.