XmlEventWriter::writeStartDocument

#include <DbXml.hpp>

virtual void 
XmlEventWriter::writeStartDocument(const unsigned char *version,
    const unsigned char *encoding,
    const unsigned char *standalone)

Write a StartDocument element event to the XmlEventWriter . This must be the first event written.

Parameters

version

The XML version string, or NULL.

encoding

The encoding for the document, or NULL. Content must be written as UTF-8; however, the encoding may be used on output, if possible.

standalone

The standalone string, or NULL.

Errors

The XmlEventWriter::writeStartDocument 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