axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
const char * axl_node_get_name ( axlNode node)

Allows to get current xml node name.

If it is required to check if the given axlNode have a particular name you can use the macro NODE_CMP_NAME.

Here is an example:

1 void check_name (axlNode * node) {
2  if (NODE_CMP_NAME (node, "data")) {
3  // we got a xml node called "data"
4  }
5  // the node doesn't have that name
6 }
nodeThe axlNode where the name will be returned.
A string reference containing the name. Returned value must not deallocated. If a copy is required use axl_strdup function.

References axl_return_val_if_fail.

Referenced by axl_doc_get_list(), axl_dtd_validate(), axl_node_are_equal_full(), axl_node_copy(), axl_node_get_next(), axl_node_replace(), axl_ns_node_cmp(), and axl_ns_node_is_prefixed().