Create a new custom data node. The new custom 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 element node has no parent. NULL can be passed when the data in the node is not dynamically allocated or is separately managed.
mxml_node_t * mxmlNewCustom( mxml_node_t * parent, void * data, void (*destroy)(void *));
Name | Description |
---|---|
parent | Parent node or MXML_NO_PARENT |
data | Pointer to data |
(*destroy)(void *) | Function to destroy data |
New node