|
| iMatix home page | << | < | > | >> |
SFLVersion 2.10 |
#include "sflxml.h"
char *
xml_get_attr (
XML_ITEM *item,
const char *name,
const char *deflt)
Returns the value for the specified attribute, if it exists. Otherwise returns the default value.
{
XML_ATTR
*attr;
ASSERT (item);
ASSERT (name);
attr = xml attr (item, name);
if (attr)
return (attr-> value);
else
return ((char *) deflt);
}
| | << | < | > | >> |
|