pub unsafe fn new_node(ns: *mut _xmlNs, name: *const xmlChar) -> *mut _xmlNodeExpand description
Create a new XML node.
§UPSTREAM-PARITY
xmlNodePtr xmlNewNode(xmlNsPtr ns, const xmlChar *name);Creates a new element node with the given name and namespace.
§SAFETY
nsmay be NULL.namemust be a valid null-terminated string or NULL (NULL returns NULL — upstream tree.cxmlNewNoderejects a NULL name up front, HOSTILE-ABI A48).