* xmlSaveFile: * @filename: the filename (or URL) * @cur: the document * * Dump an XML document to a file. Will use compression if * compiled in and enabled. If @filename is "-" the stdout file is * used. * returns: the number of bytes written or -1 in case of failure. */
| 2997 | * returns: the number of bytes written or -1 in case of failure. |
| 2998 | */ |
| 2999 | int |
| 3000 | xmlSaveFile(const char *filename, xmlDocPtr cur) { |
| 3001 | return(xmlSaveFormatFileEnc(filename, cur, NULL, 0)); |
| 3002 | } |
| 3003 | |
| 3004 | #endif /* LIBXML_OUTPUT_ENABLED */ |
| 3005 |