Skip to main content

new_comment

Function new_comment 

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

Create a new comment node.

§UPSTREAM-PARITY

xmlNodePtr xmlNewComment(const xmlChar *content);

Creates a comment node with the given content.

§SAFETY

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