/* 'type_cb()' - XML data type callback for mxmlLoadFile()...  */
mxml_type_t type_cb(mxml_node_t *node)
/* 'type_cb()' - XML data type callback for mxmlLoadFile()...  */
mxml_type_t type_cb(mxml_node_t *node)
{
  const char	*type;
  if ((type = mxmlElementGetAttr(node, "type")) == NULL)
    type = node->value.element.name;
  if (!strcmp(type, "integer"))
    return (MXML_INTEGER);
  else if (!strcmp(type, "opaque") || !strcmp(type, "pre"))
    return (MXML_OPAQUE);
  else if (!strcmp(type, "real"))
    return (MXML_REAL);
  else
    return (MXML_TEXT);
}