Function copy_doc
Source pub unsafe fn copy_doc(doc: *const _xmlDoc, recursive: c_int) -> *mut _xmlDoc
Expand description
Copy a document (deep copy by default).
§UPSTREAM-PARITY
xmlDocPtr xmlCopyDoc(xmlDocPtr doc, int recursive);
If recursive is 1, the entire tree is copied.
If recursive is 0, only the document structure is copied (no children).
§SAFETY
doc must be a valid pointer to an _xmlDoc, or NULL.