Skip to main content

set_ns_prop

Function set_ns_prop 

Source
pub unsafe fn set_ns_prop(
    node: *mut _xmlNode,
    _ns: *mut _xmlNs,
    name: *const xmlChar,
    value: *const xmlChar,
) -> *mut _xmlAttr
Expand description

Set a namespaced attribute.

§UPSTREAM-PARITY

xmlAttrPtr xmlSetNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name, const xmlChar *value);

§SAFETY

  • node must be a valid pointer to an _xmlNode, or NULL.
  • ns may be NULL.
  • name must be a valid null-terminated string.
  • value must be a valid null-terminated string or NULL.