XmlDocument::getContentAsEventWriter

#include <DbXml.hpp>

void 
XmlDocument::getContentAsEventWriter(XmlEventWriter &writer) const

Causes the document's content to be written as events to the provided XmlEventWriter .

If the document comes from a container of type XmlContainer::WholedocContainer, it will be parsed in order to provide the event stream.

Parameters

writer

The event writer to which the content events are written. When the event writing is complete, the XmlEventWriter::close method is called. To create the writer, use one of XmlContainer::putDocumentAsEventWriter, or implement an application-defined class derived from XmlEventWriter .

Class

XmlDocument

See Also

XmlDocument Methods