Add a node to a tree.mxml_node_t *Parent node
intWhere to add
mxml_node_t *Child node for where
mxml_node_t *Node to add
Delete a node and all of its children.mxml_node_t *Node
Attribute value or NULLconst
char *
Get an attribute.mxml_node_t *Element node
const char *Name of attribute
Set an attribute.mxml_node_t *Element node
const char *Name of attribute
const char *Attribute value
Element node or NULLmxml_node_t
*
Find the named element.mxml_node_t *Current node
mxml_node_t *Top node
const char *Element name or NULL for any
const char *Attribute name, or NULL for none
const char *Attribute value, or NULL for any
intDescend into tree?
First nodemxml_node_t
*
Load a file into an XML node tree.mxml_node_t *Top node
FILE *File to read from
mxml_type_tCallback function
New nodemxml_node_t
*
Create a new element node.mxml_node_t *Parent node
const char *Name of element
New nodemxml_node_t
*
Create a new integer node.mxml_node_t *Parent node
intInteger value
New nodemxml_node_t
*
Create a new opaque string.mxml_node_t *Parent node
const char *Opaque string
New nodemxml_node_t
*
Create a new real number node.mxml_node_t *Parent node
doubleReal number value
New nodemxml_node_t
*
Create a new text fragment node.mxml_node_t *Parent node
intLeading whitespace?
const char *String
Remove a node from its parent.mxml_node_t *Node to remove
0 on success, -1 on errorint
Save an XML tree to a file.mxml_node_t *Node to write
FILE *File to write to
intWhitespace callback
Next node or NULLmxml_node_t
*
Walk to the next logical node in the tree.mxml_node_t *Current node
mxml_node_t *Top node
intDescend into tree?
Previous node or NULLmxml_node_t
*
Walk to the previous logical node in the tree.mxml_node_t *Current node
mxml_node_t *Top node
intDescend into tree?
Attribute Valuechar *Attribute name
char *Attribute value
Attribute Valuestruct
mxml_attr_s
Element Valuestruct
mxml_value_s
Nodemxml_node_t *First child node
mxml_node_t *Last child node
mxml_node_t *Next node under same parent
mxml_node_t *Parent node
mxml_node_t *Previous node under same parent
mxml_type_tNode type
mxml_value_tNode value
Text Valuechar *Fragment string
intLeading whitespace?
Text Valuestruct
mxml_text_s
Node TypeXML element with attributes
Integer value
Opaque string
Real value
Text fragment
Node Typeenum
mxml_type_e
Element Valuemxml_attr_t *Attributes
char *Name of element
intNumber of attributes
Node Valueunion
mxml_value_u
Node Valuemxml_element_tElement
intInteger number
char *Opaque string
doubleReal number
mxml_text_tText fragment