Skip to main content

get_prop

Function get_prop 

Source
pub unsafe fn get_prop(
    node: *mut _xmlNode,
    name: *const xmlChar,
) -> *mut xmlChar
Expand description

Get an attribute value by name.

§UPSTREAM-PARITY

xmlChar *xmlGetProp(xmlNodePtr node, const xmlChar *name);

Returns the attribute value as an xmlChar* (caller must free with xmlFree), or NULL if the attribute doesn’t exist.

§SAFETY

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