Save an XML document to a file.
Save an XML document to a file. This saves the document to file, returning how many bytes were written, or -1 if there is an error.If the filename is "*" (an asterisk), the document is written to stdout. Number of bytes written is returned as normal.