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

 

xml_attr

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

Synopsis

Searches for the attribute with the specified (lower-case) 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 (attr-> name ? lexcmp (attr-> name, name) == 0 : FALSE)
            return (attr);

    return (NULL);
}

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