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: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.