Method

RestXmlNodeget_attr

Declaration [src]

const gchar*
rest_xml_node_get_attr (
  RestXmlNode* node,
  const gchar* attr_name
)

Description [src]

Get the value of the attribute named attr_name, or NULL if it doesn’t exist.

Parameters

attr_name const gchar*
 

The name of an attribute.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: utf8
 

The attribute value. This string is owned by RestXmlNode and should not be freed.

 The data is owned by the instance.
 The string is a NUL terminated UTF-8 string.