* 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 */
| 1972 | * DTD definition |
| 1973 | */ |
| 1974 | void |
| 1975 | xmlDumpAttributeDecl(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: |
nothing calls this directly
no test coverage detected