All of the examples so far have concentrated on creating and loading new XML data nodes. Many applications, however, need to manipulate or change the nodes during their operation, so Mini-XML provides functions to change node values safely and without leaking memory.
Existing nodes can be changed using the mxmlSetElement(), mxmlSetInteger(), mxmlSetOpaque(), mxmlSetReal(), and mxmlSetText() functions. For example, use the following function call to change a text node to contain the text "new" with leading whitespace:
mxml_node_t *node; mxmlSetText(node, 1, "new");