Skip to main content

new_pi

Function new_pi 

Source
pub unsafe fn new_pi(
    name: *const xmlChar,
    content: *const xmlChar,
) -> *mut _xmlNode
Expand description

Create a new processing instruction node.

§UPSTREAM-PARITY

xmlNodePtr xmlNewPI(const xmlChar *name, const xmlChar *content);

Creates a PI node with the given target name and content.

§SAFETY

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