* xmlNewDocTextLen: * @doc: the target document * @content: raw text content (optional) * @len: size of text content * * Create a new text node. * * Returns a pointer to the new node object or NULL if a memory * allocation failed. */
| 2588 | * allocation failed. |
| 2589 | */ |
| 2590 | xmlNodePtr |
| 2591 | xmlNewDocTextLen(xmlDocPtr doc, const xmlChar *content, int len) { |
| 2592 | xmlNodePtr cur; |
| 2593 | |
| 2594 | cur = xmlNewTextLen(content, len); |
| 2595 | if (cur != NULL) cur->doc = doc; |
| 2596 | return(cur); |
| 2597 | } |
| 2598 | |
| 2599 | /** |
| 2600 | * xmlNewComment: |
no test coverage detected