Function yrs::yxmlelem [−][src]
#[no_mangle]
pub unsafe extern "C" fn yxmlelem(
txn: *mut Transaction,
name: *const c_char
) -> *mut XmlElement
Expand description
Gets or creates a new shared YXmlElement
data type instance as a root-level type of a given
document. This structure can later be accessed using its name
, which must be a null-terminated
UTF-8 compatible string.
Use yxmlelem_destroy in order to release pointer returned that way - keep in mind that this
will not remove YXmlElement
instance from the document itself (once created it’ll last for
the entire lifecycle of a document).