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: Jul 24 2023
Copyright © 2023 Thunderstone Software LLC. All rights reserved.