Function yrs::yxmlelem_insert_attr [−][src]
#[no_mangle]
pub unsafe extern "C" fn yxmlelem_insert_attr(
xml: *const XmlElement,
txn: *mut Transaction,
attr_name: *const c_char,
attr_value: *const c_char
)
Expand description
Inserts an XML attribute described using attr_name
and attr_value
. If another attribute with
the same name already existed, its value will be replaced with a provided one.
Both attr_name
and attr_value
must be a null-terminated UTF-8 encoded strings. Their
contents are being copied, therefore it’s up to a function caller to properly release them.