XmlEventReader::needsEntityEscape API Ref

#include <DbXml.hpp>

virtual bool XmlEventReader::needsEntityEscape(int index = 0) const


Description: XmlEventReader::needsEntityEscape

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.

Parameters
index

Errors

The XmlEventReader::needsEntityEscape method may fail and throw XmlException, encapsulating one of the following non-zero errors:


EVENT_ERROR

APIRef

Copyright (c) 1996-2009 Oracle. All rights reserved.