Skip to main content

new_node

Function new_node 

Source
pub unsafe fn new_node(ns: *mut _xmlNs, name: *const xmlChar) -> *mut _xmlNode
Expand 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

  • ns may be NULL.
  • name must be a valid null-terminated string or NULL.