* xmlSaveFormatFile: * @filename: the filename (or URL) * @cur: the document * @format: should formatting spaces been added * * Dump an XML document to a file. Will use compression if * compiled in and enabled. If @filename is "-" the stdout file is * used. If @format is set then the document will be indented on output. * Note that @format = 1 provide node indenting only if xmlIndentTre
| 2982 | * returns: the number of bytes written or -1 in case of failure. |
| 2983 | */ |
| 2984 | int |
| 2985 | xmlSaveFormatFile(const char *filename, xmlDocPtr cur, int format) { |
| 2986 | return ( xmlSaveFormatFileEnc( filename, cur, NULL, format ) ); |
| 2987 | } |
| 2988 | |
| 2989 | /** |
| 2990 | * xmlSaveFile: |
nothing calls this directly
no test coverage detected