* xmlSaveDoc: * @ctxt: a document saving context * @doc: a document * * Save a full document to a saving context * TODO: The function is not fully implemented yet as it does not return the * byte count but 0 instead * * Returns the number of byte written or -1 in case of error */
| 2120 | * Returns the number of byte written or -1 in case of error |
| 2121 | */ |
| 2122 | long |
| 2123 | xmlSaveDoc(xmlSaveCtxtPtr ctxt, xmlDocPtr doc) |
| 2124 | { |
| 2125 | long ret = 0; |
| 2126 | |
| 2127 | if ((ctxt == NULL) || (doc == NULL)) return(-1); |
| 2128 | if (xmlDocContentDumpOutput(ctxt, doc) < 0) |
| 2129 | return(-1); |
| 2130 | return(ret); |
| 2131 | } |
| 2132 | |
| 2133 | /** |
| 2134 | * xmlSaveTree: |
no test coverage detected