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

 

xml_attr

#include "sflxml.h"
XML_ATTR *
xml_attr (
    XML_ITEM   *item,
    const char *name)

Synopsis

Searches for the attribute with the specified name; if found, returns the address of the attribute node, otherwise returns NULL.

Source Code - (sflxml.c)

{
    XML_ATTR
        *attr;

    ASSERT (item);
    ASSERT (name);

    FORLIST (attr, item-> attrs)
        if (streq (attr-> name, name))
            return (attr);

    return (NULL);
}

| << | < | > | >> iMatix Copyright © 1996-98 iMatix