XmlEventWriter::writeStartDocument

API Ref

#include <DbXml.hpp>

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


Description: XmlEventWriter::writeStartDocument

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.

APIRef

Copyright (c) 1996,2007 Oracle. All rights reserved.