XmlEventWriter::writeText

#include <DbXml.hpp>

virtual void 
XmlEventWriter::writeText(XmlEventReader::XmlEventType type,
    const unsigned char *text, int length)

Write an text event to the XmlEventWriter . Valid text event types include XmlEventReader::Characters, XmlEventReader::Whitespace, XmlEventReader::CDATA, and XmlEventReader::Comment.

Parameters

type

The type of the event — must be one of XmlEventReader::Characters, XmlEventReader::Whitespace, XmlEventReader::CDATA, or XmlEventReader::Comment.

text

The text string value.

length

The length of the string, not including a null terminator.

Errors

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

EVENT_ERROR

An error occurred during processing of an XmlEventWriter object. Most likely the error is attempting to write a type or value that is not valid in the current state of the object.

Class

XmlEventWriter

See Also

XmlEventWriter Methods