#[unsafe(no_mangle)]pub extern "C" fn tx_document_new() -> *mut TxDocumentExpand description
Creates a new, empty XML document.
The returned pointer must eventually be freed with tx_document_free.
ยงSafety
The caller must free the returned pointer with tx_document_free when
done. Returns null on allocation failure.