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.
void
mxmlElementSetAttrf(
mxml_node_t * node, const char * name, const char * format, ...);
Name | Description |
---|---|
node | Element node |
name | Name of attribute |
format | Printf-style attribute value |
... | Additional arguments as needed |
Nothing.