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

Function xmlDumpAttributeDecl

ThirdParty/libxml2/vtklibxml2/valid.c:1974–1985  ·  view source on GitHub ↗

* xmlDumpAttributeDecl: * @buf: the XML buffer output * @attr: An attribute declaration * * DEPRECATED: Use xmlSaveTree. * * This will dump the content of the attribute declaration as an XML * DTD definition */

Source from the content-addressed store, hash-verified

1972 * DTD definition
1973 */
1974void
1975xmlDumpAttributeDecl(xmlBufferPtr buf, xmlAttributePtr attr) {
1976 xmlSaveCtxtPtr save;
1977
1978 if ((buf == NULL) || (attr == NULL))
1979 return;
1980
1981 save = xmlSaveToBuffer(buf, NULL, 0);
1982 xmlSaveTree(save, (xmlNodePtr) attr);
1983 if (xmlSaveFinish(save) != XML_ERR_OK)
1984 xmlFree(xmlBufferDetach(buf));
1985}
1986
1987/**
1988 * xmlDumpAttributeDeclScan:

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