Create a new formatted text fragment node. The new text node is added to the end of the specified parent's child list. The constant MXML_NO_PARENT can be used to specify that the new text node has no parent. The whitespace parameter is used to specify whether leading whitespace is present before the node. The format string must be nul-terminated and is formatted into the new node.
mxml_node_t * mxmlNewTextf( mxml_node_t * parent, int whitespace, const char * format, ...);
Name | Description |
---|---|
parent | Parent node or MXML_NO_PARENT |
whitespace | 1 = leading whitespace, 0 = no whitespace |
format | Printf-style frmat string |
... | Additional args as needed |
New node