* xmlNewDocText: * @doc: the target document * @content: raw text content (optional) * * Create a new text node. * * Returns a pointer to the new node object or NULL if a memory * allocation failed. */
| 2531 | * allocation failed. |
| 2532 | */ |
| 2533 | xmlNodePtr |
| 2534 | xmlNewDocText(const xmlDoc *doc, const xmlChar *content) { |
| 2535 | xmlNodePtr cur; |
| 2536 | |
| 2537 | cur = xmlNewText(content); |
| 2538 | if (cur != NULL) cur->doc = (xmlDoc *)doc; |
| 2539 | return(cur); |
| 2540 | } |
| 2541 | |
| 2542 | /** |
| 2543 | * xmlNewTextLen: |
no test coverage detected