38 #ifndef ATTRIBUTE_H_0211250039
39 #define ATTRIBUTE_H_0211250039
68 XML_Char
const *value);
131 extern SCEW_API XML_Char
const*
141 extern SCEW_API XML_Char
const*
156 extern SCEW_API XML_Char
const*
171 extern SCEW_API XML_Char
const*
SCEW_API XML_Char const * scew_attribute_set_name(scew_attribute *attribute, XML_Char const *name)
Sets a new name to the given attribute and frees the old one.
SCEW element's handling routines.
SCEW_API XML_Char const * scew_attribute_set_value(scew_attribute *attribute, XML_Char const *value)
Sets a new value to the given attribute and frees the old one.
SCEW_API XML_Char const * scew_attribute_value(scew_attribute const *attribute)
Returns the given attribute's value.
unsigned char scew_bool
This should be defined using stdbool.h when C99 is available.
Definition: bool.h:35
struct scew_attribute scew_attribute
This is the type declaration for SCEW attributes.
Definition: element.h:63
SCEW_API scew_bool scew_attribute_compare(scew_attribute const *a, scew_attribute const *b)
Performs a comparison between the two given attributes.
SCEW_API scew_attribute * scew_attribute_create(XML_Char const *name, XML_Char const *value)
Creates a new attribute with the given pair (name, value).
SCEW_API scew_attribute * scew_attribute_copy(scew_attribute const *attribute)
Makes a copy of the given attribute.
SCEW_API XML_Char const * scew_attribute_name(scew_attribute const *attribute)
Returns the given attribute's name.
SCEW boolean type declaration.
SCEW_API scew_element * scew_attribute_parent(scew_attribute const *attribute)
Returns the element that the given attribute belongs to.
struct scew_element scew_element
This is the type delcaration for SCEW elements.
Definition: element.h:56
SCEW_API void scew_attribute_free(scew_attribute *attribute)
Frees the given attribute.