XmlEventWriter::writeDTD

#include <DbXml.hpp>

virtual void XmlEventWriter::writeDTD(const unsigned char *dtd,
    int length)

Write a DTD to the XmlEventWriter . This can be used to write an internal subset, or a reference to an external DTD.

Parameters

dtd

The string value of the DTD or reference as it would appear in a serialized XML document.

length

The length of the dtd parameter, not including the null terminator.

Errors

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