if (!strcmp((const char *) attr->name, "type") &&
attr->children && attr->children->type == XML_TEXT_NODE)
match_type = (const char *) attr->children->content;
if (!strcmp((const char *) attr->name, "type") &&
attr->children && attr->children->type == XML_TEXT_NODE)
match_type = (const char *) attr->children->content;