bool axl_ns_node_cmp ( axlNode node,
const char *  ns,
const char *  name 
)

Allows to perform a node name (tag) checking using XML 1.0 Namespace rules.

This function must be used instead of NODE_CMP_NAME if your application must support XML 1.0 namespaces.

The idea is that you declares the namespace that you will recognize using a macro definition at some place in your headers, as follows:

 #define YOUR_NS "http://yourdomain.com/somepath/yourapplication"

Previous namespace must be unique. This is crucial to avoid tag clashing. Now, you use this namespace identifier and the local name of your tag to check a particular node to have a particular name as follows:

 if (axl_ns_node_cmp (node, YOUR_NS, "table")) {
     // found table node inside your namespace
 }

It is required to call first to axl_ns_doc_validate in order to make this function to properly work.

Parameters:
node The node that will be checked.
ns The namespace to use to match the node name.
name The node name to be checked (without namespace prefixes).
Returns:
true if the node name is the one expected, binded by the namespace declaration, otherwise false is returned. The function returns false in the of some paremeter is provided null.