From 2fc73455b22712501db36339c8064b2f92a0461d Mon Sep 17 00:00:00 2001
From: Michael R Sweet The XML node type.mxml_type_e
+NOmxml_type_e
Description
-Name Description
-MXML_CUSTOM Custom data
-MXML_ELEMENT XML element with attributes
-MXML_IGNORE Ignore/throw away node
-MXML_INTEGER Integer value
-MXML_OPAQUE Opaque string
-MXML_REAL Real value
+MXML_TEXT Text fragment
+NOMXML_CUSTOM Custom data
+NOMXML_ELEMENT XML element with attributes
+NOMXML_IGNORE Ignore/throw away node
+NOMXML_INTEGER Integer value
+NOMXML_OPAQUE Opaque string
+NOMXML_REAL Real value NOMXML_TEXT Text fragment
Add a node to a tree. @@ -119,7 +120,7 @@ mxmlAdd(
Nothing.
-Delete a node and all of its children. @@ -141,7 +142,7 @@ mxmlDelete(
Nothing.
-Get an attribute. @@ -165,7 +166,7 @@ mxmlElementGetAttr(
Attribute value or NULL
-Set an attribute. @@ -193,7 +194,7 @@ mxmlElementSetAttr(
Nothing.
-Add a callback to convert entities to Unicode.
@@ -207,7 +208,7 @@ mxmlEntityAddCallback(void);0 on success, -1 on failure
-Get the name that corresponds to the character value. @@ -228,7 +229,7 @@ mxmlEntityGetName(
Entity name or NULL
-Get the character corresponding to a named entity. @@ -250,7 +251,7 @@ mxmlEntityGetValue(
Character value or -1 on error
-Remove a callback.
@@ -264,7 +265,7 @@ mxmlEntityRemoveCallback(void);Nothing.
-Find the named element. @@ -302,7 +303,7 @@ mxmlFindElement(
Element node or NULL
-Delete an index.
@@ -321,7 +322,7 @@ mxmlIndexDelete(Nothing.
-Return the next node in the index. @@ -342,7 +343,7 @@ mxmlIndexEnum(
Next node or NULL if there is none
-Find the next matching node. @@ -370,7 +371,7 @@ mxmlIndexFind(
Node or NULL if none found
-Create a new index. @@ -399,7 +400,7 @@ mxmlIndexNew(
New index
-Reset the enumeration/find pointer in the index and @@ -422,7 +423,7 @@ mxmlIndexReset(
First node or NULL if there is none
-Load a file descriptor into an XML node tree. @@ -454,7 +455,7 @@ mxmlLoadFd(
First node or NULL if the file could not be read.
-Load a file into an XML node tree. @@ -486,7 +487,7 @@ mxmlLoadFile(
First node or NULL if the file could not be read.
-Load a string into an XML node tree. @@ -518,7 +519,7 @@ mxmlLoadString(
First node or NULL if the string has errors.
-Create a new CDATA node. @@ -544,7 +545,7 @@ mxmlNewCDATA(
New node
-Create a new custom data node. @@ -570,7 +571,7 @@ mxmlNewCustom(
New node
-Create a new element node. @@ -595,7 +596,7 @@ mxmlNewElement(
New node
-Create a new integer node. @@ -620,7 +621,7 @@ mxmlNewInteger(
New node
-Create a new opaque string. @@ -646,7 +647,7 @@ mxmlNewOpaque(
New node
-Create a new real number node. @@ -671,7 +672,7 @@ mxmlNewReal(
New node
-Create a new text fragment node. @@ -700,7 +701,7 @@ mxmlNewText(
New node
-Create a new formatted text fragment node. @@ -731,7 +732,7 @@ mxmlNewTextf(
New node
-Remove a node from its parent. @@ -753,7 +754,7 @@ mxmlRemove(
Nothing.
-Save an XML node tree to an allocated string. @@ -784,7 +785,7 @@ mxmlSaveAllocString(
Allocated string or NULL
-Save an XML tree to a file descriptor. @@ -811,7 +812,7 @@ mxmlSaveFd(
0 on success, -1 on error.
-Save an XML tree to a file. @@ -838,7 +839,7 @@ mxmlSaveFile(
0 on success, -1 on error.
-Save an XML node tree to a string. @@ -871,7 +872,7 @@ mxmlSaveString(
Size of string
-Set the element name of a CDATA node. @@ -894,7 +895,7 @@ mxmlSetCDATA(
0 on success, -1 on failure
-Set the data and destructor of a custom data node. @@ -917,7 +918,7 @@ mxmlSetCustom(
0 on success, -1 on failure
-Set the handling functions for custom data. @@ -944,7 +945,7 @@ mxmlSetCustomHandlers(
Nothing.
-Set the name of an element node. @@ -967,7 +968,7 @@ mxmlSetElement(
0 on success, -1 on failure
-Set the error message callback.
@@ -981,7 +982,7 @@ mxmlSetErrorCallback(void);Nothing.
-Set the value of an integer node. @@ -1004,7 +1005,7 @@ mxmlSetInteger(
0 on success, -1 on failure
-Set the value of an opaque node. @@ -1027,7 +1028,7 @@ mxmlSetOpaque(
0 on success, -1 on failure
-Set the value of a real number node. @@ -1050,7 +1051,7 @@ mxmlSetReal(
0 on success, -1 on failure
-Set the value of a text node. @@ -1075,7 +1076,7 @@ mxmlSetText(
0 on success, -1 on failure
-Set the value of a text node to a formatted string. @@ -1102,7 +1103,7 @@ mxmlSetTextf(
0 on success, -1 on failure
-Walk to the next logical node in the tree. @@ -1129,7 +1130,7 @@ mxmlWalkNext(
Next node or NULL
-Walk to the previous logical node in the tree. @@ -1166,7 +1167,7 @@ mxmlWalkPrev(
An XML element attribute value.
@@ -1182,11 +1183,11 @@ struct mxml_attr_sName | Description |
---|---|
name | Attribute name |
value | Attribute value |
NOname | Attribute name |
NOvalue | Attribute value |
An XML custom value.
@@ -1201,10 +1202,10 @@ struct mxml_custom_sName | Description |
---|---|
data | Pointer to (allocated) custom data |
NOdata | Pointer to (allocated) custom data |
An XML node index.
@@ -1223,14 +1224,14 @@ struct mxml_index_sName | Description |
---|---|
alloc_nodes | Allocated nodes in index |
attr | Attribute used for indexing or NULL |
cur_node | Current node |
nodes | Node array |
num_nodes | Number of nodes in index |
NOalloc_nodes | Allocated nodes in index |
NOattr | Attribute used for indexing or NULL |
NOcur_node | Current node |
NOnodes | Node array |
NOnum_nodes | Number of nodes in index |
An XML node.
@@ -1251,16 +1252,16 @@ struct mxml_node_sName | Description |
---|---|
child | First child node |
last_child | Last child node |
next | Next node under same parent |
parent | Parent node |
prev | Previous node under same parent |
type | Node type |
value | Node value |
NOchild | First child node |
NOlast_child | Last child node |
NOnext | Next node under same parent |
NOparent | Parent node |
NOprev | Previous node under same parent |
NOtype | Node type |
NOvalue | Node value |
An XML text value.
@@ -1276,11 +1277,11 @@ struct mxml_text_sName | Description |
---|---|
string | Fragment string |
whitespace | Leading whitespace? |
NOstring | Fragment string |
NOwhitespace | Leading whitespace? |
An XML element value.
@@ -1297,9 +1298,9 @@ struct mxml_value_sName | Description |
---|---|
attrs | Attributes |
name | Name of element |
num_attrs | Number of attributes |
NOattrs | Attributes |
NOname | Name of element |
NOnum_attrs | Number of attributes |
An XML element attribute value.
@@ -1324,7 +1325,7 @@ struct mxml_value_s typedef struct mxml_attr_s mxml_attr_t; -Custom data load callback function
@@ -1333,7 +1334,7 @@ typedef struct mxml_attr_s mxml_attr_t; typedef int (*mxml_custom_load_cb_t)(mxml_node_t *, const char *); -Custom data save callback function
@@ -1342,7 +1343,7 @@ typedef int (*mxml_custom_load_cb_t)(mxml_node_t *, c typedef char * (*mxml_custom_save_cb_t)(mxml_node_t *); -An XML custom value.
@@ -1351,7 +1352,7 @@ typedef char * (*mxml_custom_save_cb_t)(mxml_node_t * typedef struct mxml_custom_s mxml_custom_t; -An XML element value.
@@ -1360,7 +1361,7 @@ typedef struct mxml_custom_s mxml_custom_t; typedef struct mxml_value_s mxml_element_t; -An XML node index.
@@ -1369,7 +1370,7 @@ typedef struct mxml_value_s mxml_element_t; typedef struct mxml_index_s mxml_index_t; -An XML node.
@@ -1378,7 +1379,7 @@ typedef struct mxml_index_s mxml_index_t; typedef struct mxml_node_s mxml_node_t; -An XML text value.
@@ -1387,7 +1388,7 @@ typedef struct mxml_node_s mxml_node_t; typedef struct mxml_text_s mxml_text_t; -An XML node value.
@@ -1401,7 +1402,7 @@ typedef union mxml_value_u mxml_value_t;An XML node value.
@@ -1421,12 +1422,12 @@ union mxml_value_uName | Description |
---|---|
custom | Custom data |
element | Element |
integer | Integer number |
opaque | Opaque string |
real | Real number |
text | Text fragment |
NOcustom | Custom data |
NOelement | Element |
NOinteger | Integer number |
NOopaque | Opaque string |
NOreal | Real number |
NOtext | Text fragment |