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

 

xml_get_attr

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

Synopsis

Returns the value for the specified attribute, if it exists. Otherwise returns the default value.

Source Code - (sflxml.c)

{
    XML_ATTR
        *attr;

    ASSERT (item);
    ASSERT (name);

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

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