MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlSaveDoc

Function xmlSaveDoc

ThirdParty/libxml2/vtklibxml2/xmlsave.c:2122–2131  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

2120 * Returns the number of byte written or -1 in case of error
2121 */
2122long
2123xmlSaveDoc(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:

Callers 1

parseAndPrintFileFunction · 0.85

Calls 1

xmlDocContentDumpOutputFunction · 0.85

Tested by

no test coverage detected