int xmlWriterEndDocument(xmlWriter writer)
xmlWriterEndDocument() completes the XML document being
written. If there are any open elements, they are closed
If this writer was created with
xmlWriterNewToFile, then the
file handle for the writer is closed.
<$ret = (xmlWriterEndDocument($writer))>