* xmlNewNodeEatName: * @ns: namespace (optional) * @name: the node name * * Create an element node. * * Use of this function is DISCOURAGED in favor of xmlNewDocNodeEatName. * * Like xmlNewNode, but the @name string will be used directly * without making a copy. Takes ownership of @name which will also * be freed on error. * * Returns a pointer to the new node object or NULL if argum
| 2080 | * invalid or a memory allocation failed. |
| 2081 | */ |
| 2082 | xmlNodePtr |
| 2083 | xmlNewNodeEatName(xmlNsPtr ns, xmlChar *name) { |
| 2084 | return(xmlNewDocNodeEatName(NULL, ns, name, NULL)); |
| 2085 | } |
| 2086 | |
| 2087 | static xmlNodePtr |
| 2088 | xmlNewElem(xmlDocPtr doc, xmlNsPtr ns, const xmlChar *name, |
no test coverage detected