| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

xml_get_attr_ic

#include "sflxml.h"
char *
xml_get_attr_ic (
    XML_ITEM   *item,
    const char *name,
    const char *deflt,
    Bool        ignore_case)

Synopsis

Returns the value for the specified attribute, if it exists. Otherwise returns the default value. If the paramater 'ignore_case' is TRUE, the case of the attribute name is insignificant.

Source Code - (sflxml.c)

{
    XML_ATTR
        *attr;

    ASSERT (item);
    ASSERT (name);

    attr = xml attr ic (item, name, ignore_case);
    if (attr)
        return (attr-> value);
    else
        return ((char *) deflt);
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation