- if (!xmlStrcmp(attr->name, BAD_CAST "path") &&
- attr->children && attr->children->type == XML_TEXT_NODE)
- info->xpath_expr =
- nmem_strdup(nmem, (const char *) attr->children->content);
- else
- {
- wrbuf_printf(wr_error, "Bad attribute '%s'"
- "Expected xpath.", attr->name);
- nmem_destroy(nmem);
+ wrbuf_printf(wr_error, "Bad attribute '%s'"
+ "Expected xpath.", attr_str);
+ nmem_destroy(nmem);