* xmlDumpEntityDecl: * @buf: An XML buffer. * @ent: An entity table * * This will dump the content of the entity table as an XML DTD definition */
| 932 | * This will dump the content of the entity table as an XML DTD definition |
| 933 | */ |
| 934 | void |
| 935 | xmlDumpEntityDecl(xmlBufferPtr buf, xmlEntityPtr ent) { |
| 936 | xmlSaveCtxtPtr save; |
| 937 | |
| 938 | if ((buf == NULL) || (ent == NULL)) |
| 939 | return; |
| 940 | |
| 941 | save = xmlSaveToBuffer(buf, NULL, 0); |
| 942 | xmlSaveTree(save, (xmlNodePtr) ent); |
| 943 | if (xmlSaveFinish(save) != XML_ERR_OK) |
| 944 | xmlFree(xmlBufferDetach(buf)); |
| 945 | } |
| 946 | |
| 947 | /** |
| 948 | * xmlDumpEntityDeclScan: |
nothing calls this directly
no test coverage detected