-const char *element_attribute_value_extract(const xmlNode *ptr, const char *attribute_name, NMEM nmem) {
-
- const char *name = ptr->name;
- size_t length = strlen(name);
- if (length > 1 ) {
- return nmem_strdup(nmem, name+1);
- }
- // TODO Extract from attribute where matches attribute_name
- xmlAttr *attr;
+char *element_attribute_value_extract(const xmlNode *ptr,
+ const char *attribute_name,
+ NMEM nmem)
+{
+ const char *name = (const char *) ptr->name;
+ size_t length = strlen(name);
+ xmlAttr *attr;
+ if (length > 1 )
+ return nmem_strdup(nmem, name+1);
+ // TODO Extract from attribute where matches attribute_name