Contents Previous Next

 Mini-XML 2.3 mxmlElementSetAttrf()

Description

Set an attribute with a formatted value.

If the named attribute already exists, the value of the attribute is replaced by the new formatted string. The formatted string value is copied into the element node. This function does nothing if the node is not an element.

Syntax

void
mxmlElementSetAttrf( mxml_node_t * node, const char * name, const char * format, ...);

Arguments

NameDescription
nodeElement node
nameName of attribute
formatPrintf-style attribute value
...Additional arguments as needed

Returns

Nothing.


Contents Previous Next