WriteEndDocument (IXmlWriterLite)

 

Marks the current document as closed. To reinitialize the writer so that a new document can be written, you must call SetOutput.

Syntax

  
HRESULT WriteEndDocument ();  

Return Value

Returns S_OK if no error is generated.

WriteEndDocument does not close any open elements or attributes. You must explicitly close open elements before calling WriteEndDocument to write a well-formed document. No write methods can be called on a document after WriteEndDocument is called. For an example of the WriteEndDocument method, see Write an XML Document using XmlLite.

Requirements

Header: XmlLite.h

Library: XmlLite.lib

See Also

IXmlWriterLite Methods