FILE *File to write toCallback function
Local functions...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?
Local functions...mxml_node_t
*
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?
Data types...char *Attribute name
char *Attribute value
struct mxml_attr_s
struct mxml_value_s
mxml_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
char
*Fragment string
intLeading whitespace?
struct mxml_text_s
Node TypeXML element with attributes
Integer value
Opaque string
Real value
Text fragmentAttribute ValueElement ValueText ValueNode ValueNodeC++ support...Prototypes...C++ support...End of "$Id: mxml.xml,v 1.3 2003/06/07 21:27:05 mike Exp $".
enum mxml_type_e
mxml_attr_t
*Attributes
char *Name of element
intNumber of attributes
union mxml_value_u
mxml_element_tElement
intInteger number
char *Opaque string
doubleReal number
mxml_text_tText fragment
mxml_node_t *Current node
mxml_node_t *Parent nodeNode type
const char *String to writeFile to write to
int(*cb)(mxml_node_t *int) intWhere valueCurrent column