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

Convenience function that allows to check if a particular attribute with a particular value is found at the provided node.

This function will check if the attribute provided in the node is found and in such case, if the value that is contained inside the node is actually the same as the one provide to this function.

You can also use hits macro associated: HAS_ATTR_VALUE.

nodeThe node that will be checked.
attributeThe attribute to be checked.
valueThe value to checked if the attribute is found.
axl_true if the node has the attribute with the provided value.

References axl_cmp(), axl_false, axl_node_get_attribute_value(), and axl_return_val_if_fail.