* xmlAttrSerializeTxtContent: * @buf: the XML buffer output * @doc: the document * @attr: the attribute node * @string: the text content * * Serialize text attribute values to an xml simple buffer */
| 2405 | * Serialize text attribute values to an xml simple buffer |
| 2406 | */ |
| 2407 | void |
| 2408 | xmlAttrSerializeTxtContent(xmlBufferPtr buf, xmlDocPtr doc, |
| 2409 | xmlAttrPtr attr ATTRIBUTE_UNUSED, |
| 2410 | const xmlChar *string) |
| 2411 | { |
| 2412 | xmlOutputBufferPtr out; |
| 2413 | |
| 2414 | if ((buf == NULL) || (string == NULL)) |
| 2415 | return; |
| 2416 | out = xmlOutputBufferCreateBuffer(buf, NULL); |
| 2417 | xmlBufAttrSerializeTxtContent(out, doc, string); |
| 2418 | xmlOutputBufferFlush(out); |
| 2419 | if ((out == NULL) || (out->error)) |
| 2420 | xmlFree(xmlBufferDetach(buf)); |
| 2421 | xmlOutputBufferClose(out); |
| 2422 | } |
| 2423 | |
| 2424 | /** |
| 2425 | * xmlNodeDump: |
nothing calls this directly
no test coverage detected