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

Function xmlDumpElementDecl

ThirdParty/libxml2/vtklibxml2/valid.c:1425–1436  ·  view source on GitHub ↗

* xmlDumpElementDecl: * @buf: the XML buffer output * @elem: An element table * * DEPRECATED: Use xmlSaveTree. * * This will dump the content of the element declaration as an XML * DTD definition */

Source from the content-addressed store, hash-verified

1423 * DTD definition
1424 */
1425void
1426xmlDumpElementDecl(xmlBufferPtr buf, xmlElementPtr elem) {
1427 xmlSaveCtxtPtr save;
1428
1429 if ((buf == NULL) || (elem == NULL))
1430 return;
1431
1432 save = xmlSaveToBuffer(buf, NULL, 0);
1433 xmlSaveTree(save, (xmlNodePtr) elem);
1434 if (xmlSaveFinish(save) != XML_ERR_OK)
1435 xmlFree(xmlBufferDetach(buf));
1436}
1437
1438/**
1439 * xmlDumpElementDeclScan:

Callers

nothing calls this directly

Calls 4

xmlSaveToBufferFunction · 0.85
xmlSaveTreeFunction · 0.85
xmlSaveFinishFunction · 0.85
xmlBufferDetachFunction · 0.85

Tested by

no test coverage detected