axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
const char * axl_node_get_attribute_value_trimmed ( axlNode node,
const char *  attribute 

Allows to get the value associated to the attribute provided, inside the node selected, removing trailing and ending white spaces (in the W3C sence: \n, \t, \r, ' ').

See ATTR_VALUE_TRIMMED for a convenience macro.

nodeThe node that is requested to return the associated value to the attribute.
attributeThe attribute that is being requested.
A reference to the attribute value or NULL if it fails. The function doesn't return a copy, it returns a reference to the internal value.

References axl_node_get_attribute_value(), axl_return_val_if_fail, and axl_stream_trim().