diff --git a/doc/reference.html b/doc/reference.html index 38f4752..6d7873f 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -149,10 +149,14 @@ mxmlAdd(
Name | Description |
---|---|
parent | Parent node |
where | Where to add, MXML_ADD_BEFORE or MXML_ADD_AFTER |
child | Child node for where or MXML_ADD_TO_PARENT |
node | Node to add |
parent | Parent node + |
where | Where to add, MXML_ADD_BEFORE or MXML_ADD_AFTER + |
child | Child node for where or MXML_ADD_TO_PARENT + |
node | Node to add + |
Nothing.
@@ -172,7 +176,8 @@ mxmlDelete(Name | Description |
---|---|
node | Node to delete |
node | Node to delete + |
Nothing.
@@ -193,8 +198,10 @@ mxmlElementDeleteAttr(Name | Description |
---|---|
node | Element |
name | Attribute name |
node | Element + |
name | Attribute name + |
Nothing.
@@ -215,8 +222,10 @@ mxmlElementGetAttr(Name | Description |
---|---|
node | Element node |
name | Name of attribute |
node | Element node + |
name | Name of attribute + |
Attribute value or NULL
@@ -240,9 +249,12 @@ mxmlElementSetAttr(Name | Description |
---|---|
node | Element node |
name | Name of attribute |
value | Attribute value |
node | Element node + |
name | Name of attribute + |
value | Attribute value + |
Nothing.
@@ -269,10 +281,14 @@ mxmlElementSetAttrf(Name | Description |
---|---|
node | Element node |
name | Name of attribute |
format | Printf-style attribute value |
... | Additional arguments as needed |
node | Element node + |
name | Name of attribute + |
format | Printf-style attribute value + |
... | Additional arguments as needed + |
Nothing.
@@ -304,7 +320,8 @@ mxmlEntityGetName(Name | Description |
---|---|
val | Character value |
val | Character value + |
Entity name or NULL
@@ -324,7 +341,8 @@ mxmlEntityGetValue(Name | Description |
---|---|
name | Entity name |
name | Entity name + |
Character value or -1 on error
@@ -368,12 +386,18 @@ mxmlFindElement(Name | Description |
---|---|
node | Current node |
top | Top node |
name | Element name or NULL for any |
attr | Attribute name, or NULL for none |
value | Attribute value, or NULL for any |
descend | Descend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST |
node | Current node + |
top | Top node + |
name | Element name or NULL for any + |
attr | Attribute name, or NULL for none + |
value | Attribute value, or NULL for any + |
descend | Descend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST + |
Element node or NULL
@@ -391,7 +415,8 @@ mxmlIndexDelete(Name | Description |
---|---|
ind | Index to delete |
ind | Index to delete + |
Nothing.
@@ -410,7 +435,8 @@ mxmlIndexEnum(Name | Description |
---|---|
ind | Index to enumerate |
ind | Index to enumerate + |
Next node or NULL if there is none
@@ -434,9 +460,12 @@ mxmlIndexFind(Name | Description |
---|---|
ind | Index to search |
element | Element name to find, if any |
value | Attribute value, if any |
ind | Index to search + |
element | Element name to find, if any + |
value | Attribute value, if any + |
Node or NULL if none found
@@ -461,9 +490,12 @@ mxmlIndexNew(Name | Description |
---|---|
node | XML node tree |
element | Element to index or NULL for all |
attr | Attribute to index or NULL for none |
node | XML node tree + |
element | Element to index or NULL for all + |
attr | Attribute to index or NULL for none + |
New index
@@ -484,7 +516,8 @@ mxmlIndexReset(Name | Description |
---|---|
ind | Index to reset |
ind | Index to reset + |
First node or NULL if there is none
@@ -513,9 +546,12 @@ mxmlLoadFd(Name | Description |
---|---|
top | Top node |
fd | File descriptor to read from |
cb | Callback function or MXML_NO_CALLBACK |
top | Top node + |
fd | File descriptor to read from + |
cb | Callback function or MXML_NO_CALLBACK + |
First node or NULL if the file could not be read.
@@ -544,9 +580,12 @@ mxmlLoadFile(Name | Description |
---|---|
top | Top node |
fp | File to read from |
cb | Callback function or MXML_NO_CALLBACK |
top | Top node + |
fp | File to read from + |
cb | Callback function or MXML_NO_CALLBACK + |
First node or NULL if the file could not be read.
@@ -575,9 +614,12 @@ mxmlLoadString(Name | Description |
---|---|
top | Top node |
s | String to load |
cb | Callback function or MXML_NO_CALLBACK |
top | Top node + |
s | String to load + |
cb | Callback function or MXML_NO_CALLBACK + |
First node or NULL if the string has errors.
@@ -602,8 +644,10 @@ mxmlNewCDATA(Name | Description |
---|---|
parent | Parent node or MXML_NO_PARENT |
data | Data string |
parent | Parent node or MXML_NO_PARENT + |
data | Data string + |
New node
@@ -629,9 +673,12 @@ mxmlNewCustom(Name | Description |
---|---|
parent | Parent node or MXML_NO_PARENT |
data | Pointer to data |
destroy | Function to destroy data |
parent | Parent node or MXML_NO_PARENT + |
data | Pointer to data + |
destroy | Function to destroy data + |
New node
@@ -653,8 +700,10 @@ mxmlNewElement(Name | Description |
---|---|
parent | Parent node or MXML_NO_PARENT |
name | Name of element |
parent | Parent node or MXML_NO_PARENT + |
name | Name of element + |
New node
@@ -676,8 +725,10 @@ mxmlNewInteger(Name | Description |
---|---|
parent | Parent node or MXML_NO_PARENT |
integer | Integer value |
parent | Parent node or MXML_NO_PARENT + |
integer | Integer value + |
New node
@@ -700,8 +751,10 @@ mxmlNewOpaque(Name | Description |
---|---|
parent | Parent node or MXML_NO_PARENT |
opaque | Opaque string |
parent | Parent node or MXML_NO_PARENT + |
opaque | Opaque string + |
New node
@@ -723,8 +776,10 @@ mxmlNewReal(Name | Description |
---|---|
parent | Parent node or MXML_NO_PARENT |
real | Real number value |
parent | Parent node or MXML_NO_PARENT + |
real | Real number value + |
New node
@@ -749,9 +804,12 @@ mxmlNewText(Name | Description |
---|---|
parent | Parent node or MXML_NO_PARENT |
whitespace | 1 = leading whitespace, 0 = no whitespace |
string | String |
parent | Parent node or MXML_NO_PARENT + |
whitespace | 1 = leading whitespace, 0 = no whitespace + |
string | String + |
New node
@@ -777,10 +835,14 @@ mxmlNewTextf(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 |
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
@@ -802,7 +864,8 @@ mxmlNewXML(Name | Description |
---|---|
version | Version number to use |
version | Version number to use + |
New ?xml node
@@ -824,7 +887,8 @@ mxmlRelease(Name | Description |
---|---|
node | Node |
node | Node + |
New reference count
@@ -844,7 +908,8 @@ mxmlRemove(Name | Description |
---|---|
node | Node to remove |
node | Node to remove + |
Nothing.
@@ -864,7 +929,8 @@ mxmlRetain(Name | Description |
---|---|
node | Node |
node | Node + |
New reference count
@@ -901,11 +967,16 @@ mxmlSAXLoadFd(Name | Description |
---|---|
top | Top node |
fd | File descriptor to read from |
cb | Callback function or MXML_NO_CALLBACK |
sax_cb | SAX callback or MXML_NO_CALLBACK |
sax_data | SAX user data |
top | Top node + |
fd | File descriptor to read from + |
cb | Callback function or MXML_NO_CALLBACK + |
sax_cb | SAX callback or MXML_NO_CALLBACK + |
sax_data | SAX user data + |
First node or NULL if the file could not be read.
@@ -942,11 +1013,16 @@ mxmlSAXLoadFile(Name | Description |
---|---|
top | Top node |
fp | File to read from |
cb | Callback function or MXML_NO_CALLBACK |
sax_cb | SAX callback or MXML_NO_CALLBACK |
sax_data | SAX user data |
top | Top node + |
fp | File to read from + |
cb | Callback function or MXML_NO_CALLBACK + |
sax_cb | SAX callback or MXML_NO_CALLBACK + |
sax_data | SAX user data + |
First node or NULL if the file could not be read.
@@ -983,11 +1059,16 @@ mxmlSAXLoadString(Name | Description |
---|---|
top | Top node |
s | String to load |
cb | Callback function or MXML_NO_CALLBACK |
sax_cb | SAX callback or MXML_NO_CALLBACK |
sax_data | SAX user data |
top | Top node + |
s | String to load + |
cb | Callback function or MXML_NO_CALLBACK + |
sax_cb | SAX callback or MXML_NO_CALLBACK + |
sax_data | SAX user data + |
First node or NULL if the string has errors.
@@ -1016,8 +1097,10 @@ mxmlSaveAllocString(Name | Description |
---|---|
node | Node to write |
cb | Whitespace callback or MXML_NO_CALLBACK |
node | Node to write + |
cb | Whitespace callback or MXML_NO_CALLBACK + |
Allocated string or NULL
@@ -1042,9 +1125,12 @@ mxmlSaveFd(Name | Description |
---|---|
node | Node to write |
fd | File descriptor to write to |
cb | Whitespace callback or MXML_NO_CALLBACK |
node | Node to write + |
fd | File descriptor to write to + |
cb | Whitespace callback or MXML_NO_CALLBACK + |
0 on success, -1 on error.
@@ -1069,9 +1155,12 @@ mxmlSaveFile(Name | Description |
---|---|
node | Node to write |
fp | File to write to |
cb | Whitespace callback or MXML_NO_CALLBACK |
node | Node to write + |
fp | File to write to + |
cb | Whitespace callback or MXML_NO_CALLBACK + |
0 on success, -1 on error.
@@ -1100,10 +1189,14 @@ mxmlSaveString(Name | Description |
---|---|
node | Node to write |
buffer | String buffer |
bufsize | Size of string buffer |
cb | Whitespace callback or MXML_NO_CALLBACK |
node | Node to write + |
buffer | String buffer + |
bufsize | Size of string buffer + |
cb | Whitespace callback or MXML_NO_CALLBACK + |
Size of string
@@ -1125,8 +1218,10 @@ mxmlSetCDATA(Name | Description |
---|---|
node | Node to set |
data | New data string |
node | Node to set + |
data | New data string + |
0 on success, -1 on failure
@@ -1149,9 +1244,12 @@ mxmlSetCustom(Name | Description |
---|---|
node | Node to set |
data | New data pointer |
destroy | New destructor function |
node | Node to set + |
data | New data pointer + |
destroy | New destructor function + |
0 on success, -1 on failure
@@ -1174,8 +1272,10 @@ mxmlSetCustomHandlers(Name | Description |
---|---|
load | Load function |
save | Save function |
load | Load function + |
save | Save function + |
Nothing.
@@ -1195,8 +1295,10 @@ mxmlSetElement(Name | Description |
---|---|
node | Node to set |
name | New name string |
node | Node to set + |
name | New name string + |
0 on success, -1 on failure
@@ -1214,7 +1316,8 @@ mxmlSetErrorCallback(Name | Description |
---|---|
cb | Error callback function |
cb | Error callback function + |
Nothing.
@@ -1234,8 +1337,10 @@ mxmlSetInteger(Name | Description |
---|---|
node | Node to set |
integer | Integer value |
node | Node to set + |
integer | Integer value + |
0 on success, -1 on failure
@@ -1255,8 +1360,10 @@ mxmlSetOpaque(Name | Description |
---|---|
node | Node to set |
opaque | Opaque string |
node | Node to set + |
opaque | Opaque string + |
0 on success, -1 on failure
@@ -1276,8 +1383,10 @@ mxmlSetReal(Name | Description |
---|---|
node | Node to set |
real | Real number value |
node | Node to set + |
real | Real number value + |
0 on success, -1 on failure
@@ -1298,9 +1407,12 @@ mxmlSetText(Name | Description |
---|---|
node | Node to set |
whitespace | 1 = leading whitespace, 0 = no whitespace |
string | String |
node | Node to set + |
whitespace | 1 = leading whitespace, 0 = no whitespace + |
string | String + |
0 on success, -1 on failure
@@ -1322,10 +1434,14 @@ mxmlSetTextf(Name | Description |
---|---|
node | Node to set |
whitespace | 1 = leading whitespace, 0 = no whitespace |
format | Printf-style format string |
... | Additional arguments as needed |
node | Node to set + |
whitespace | 1 = leading whitespace, 0 = no whitespace + |
format | Printf-style format string + |
... | Additional arguments as needed + |
0 on success, -1 on failure
@@ -1346,7 +1462,8 @@ mxmlSetWrapMargin(Name | Description |
---|---|
column | Column for wrapping |
column | Column for wrapping + |
Nothing.
@@ -1369,9 +1486,12 @@ mxmlWalkNext(Name | Description |
---|---|
node | Current node |
top | Top node |
descend | Descend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST |
node | Current node + |
top | Top node + |
descend | Descend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST + |
Next node or NULL
@@ -1394,9 +1514,12 @@ mxmlWalkPrev(Name | Description |
---|---|
node | Current node |
top | Top node |
descend | Descend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST |
node | Current node + |
top | Top node + |
descend | Descend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST + |
Previous node or NULL
diff --git a/mxmldoc.c b/mxmldoc.c index 5e8ebc7..3de5df0 100644 --- a/mxmldoc.c +++ b/mxmldoc.c @@ -62,7 +62,7 @@ * *