Simple C Expat Wrapper (SCEW)
1.1.7
|
Allocate and free attributes. More...
Files | |
file | attribute.h |
SCEW attribute's handling routines. | |
Functions | |
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). More... | |
SCEW_API scew_attribute * | scew_attribute_copy (scew_attribute const *attribute) |
Makes a copy of the given attribute. More... | |
SCEW_API void | scew_attribute_free (scew_attribute *attribute) |
Frees the given attribute. More... | |
Allocate and free 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.
Note that the new copy does not belong to any element.
SCEW_API void scew_attribute_free | ( | scew_attribute * | attribute | ) |
Frees the given attribute.
That is, its name and value. You should not call this function with an attribute obtained from an element, use scew_element_delete_attribute instead. If a NULL attribute is given, this function does not have any effect.