Skip to main content

serialize_node_to_string

Function serialize_node_to_string 

Source
pub fn serialize_node_to_string(
    node: &Node<'_>,
    opts: &SerializeOptions,
) -> String
Expand description

Serialize a single Node (and its descendants) without the surrounding document machinery (no XML declaration, no DOCTYPE). Used by the libxml2 ABI shim’s xmlNodeDump and by callers that want a subtree string.