xmlWriterEndDocument

 

SYNOPSIS

int xmlWriterEndDocument(xmlWriter writer)

Parameters:

  • writer - the xmlWriter

Returns:

  • the bytes written (may be 0 because of buffering) or -1 in case of error


DESCRIPTION
xmlWriterEndDocument() completes the XML document being written. If there are any open elements, they are closed automatically.

If this writer was created with xmlWriterNewToFile, then the file handle for the writer is closed.


EXAMPLE

<$ret = (xmlWriterEndDocument($writer))>


SEE ALSO
xmlWriterGetContent


Copyright © Thunderstone Software     Last updated: Sep 25 2019
Copyright © 2019 Thunderstone Software LLC. All rights reserved.