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

Function xmlAttrSerializeTxtContent

ThirdParty/libxml2/vtklibxml2/xmlsave.c:2407–2422  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

2405 * Serialize text attribute values to an xml simple buffer
2406 */
2407void
2408xmlAttrSerializeTxtContent(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:

Callers

nothing calls this directly

Calls 5

xmlOutputBufferFlushFunction · 0.85
xmlBufferDetachFunction · 0.85
xmlOutputBufferCloseFunction · 0.85

Tested by

no test coverage detected