* xmlNodeBufGetContent: * @buffer: a buffer * @cur: the node being read * * Read the value of a node @cur, this can be either the text carried * directly by this node if it's a TEXT node or the aggregate string * of the values carried by this node child's (TEXT and ENTITY_REF). * Entity references are substituted. * Fills up the buffer @buffer with this value * * Returns 0 in case of s
| 5515 | * Returns 0 in case of success and -1 in case of error. |
| 5516 | */ |
| 5517 | int |
| 5518 | xmlNodeBufGetContent(xmlBufferPtr buffer, const xmlNode *cur) |
| 5519 | { |
| 5520 | xmlBufPtr buf; |
| 5521 | int ret; |
| 5522 | |
| 5523 | if ((cur == NULL) || (buffer == NULL)) return(-1); |
| 5524 | buf = xmlBufFromBuffer(buffer); |
| 5525 | ret = xmlBufGetNodeContent(buf, cur); |
| 5526 | buffer = xmlBufBackToBuffer(buf); |
| 5527 | if ((ret < 0) || (buffer == NULL)) |
| 5528 | return(-1); |
| 5529 | return(0); |
| 5530 | } |
| 5531 | |
| 5532 | static void |
| 5533 | xmlBufGetEntityRefContent(xmlBufPtr buf, const xmlNode *ref) { |
nothing calls this directly
no test coverage detected