Simple C Expat Wrapper (SCEW)  1.1.7
Files | Functions
Accessors

Access attributes' data, such as name and value. More...

Files

file  attribute.h
 SCEW attribute's handling routines.
 

Functions

SCEW_API XML_Char const * scew_attribute_name (scew_attribute const *attribute)
 Returns the given attribute's name. More...
 
SCEW_API XML_Char const * scew_attribute_value (scew_attribute const *attribute)
 Returns the given attribute's value. More...
 
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. More...
 
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. More...
 

Detailed Description

Access attributes' data, such as name and value.

Function Documentation

SCEW_API XML_Char const* scew_attribute_name ( scew_attribute const *  attribute)

Returns the given attribute's name.

Precondition
attribute != NULL
SCEW_API XML_Char const* scew_attribute_value ( scew_attribute const *  attribute)

Returns the given attribute's value.

Precondition
attribute != NULL
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.

If an error is found, the old name is not freed.

Precondition
attribute != NULL
name != NULL
Returns
the new attribute's name, or NULL if the new name can not be set.
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.

If an error is found, the old value is not freed.

Precondition
attribute != NULL
name != NULL
Returns
the new attribute's value, or NULL if the new value could not be set.