* 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 */
| 1423 | * DTD definition |
| 1424 | */ |
| 1425 | void |
| 1426 | xmlDumpElementDecl(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: |
nothing calls this directly
no test coverage detected