/* 'index_find()' - Compare a node with index values.  */
static int index_find(mxml_index_t *ind, const char *element, const char *value, mxml_node_t *node)
/* 'index_find()' - Compare a node with index values.  */
static int index_find(mxml_index_t *ind, const char *element, const char *value, mxml_node_t *node)
{
  int	diff;
  if (element)
  {
    if ((diff = strcmp(element, node->value.element.name)) != 0)
      return (diff);
  }
  if (value)
  {
    if ((diff = strcmp(value, mxmlElementGetAttr(node, ind->attr))) != 0)
      return (diff);
  }
  return (0);
}