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(
- - - - + + + +
NameDescription
parentParent node
whereWhere to add, MXML_ADD_BEFORE or MXML_ADD_AFTER
childChild node for where or MXML_ADD_TO_PARENT
nodeNode to add
parentParent node +
whereWhere to add, MXML_ADD_BEFORE or MXML_ADD_AFTER +
childChild node for where or MXML_ADD_TO_PARENT +
nodeNode to add +

Returns

Nothing.

@@ -172,7 +176,8 @@ mxmlDelete(
- +
NameDescription
nodeNode to delete
nodeNode to delete +

Returns

Nothing.

@@ -193,8 +198,10 @@ mxmlElementDeleteAttr(
- - + +
NameDescription
nodeElement
nameAttribute name
nodeElement +
nameAttribute name +

Returns

Nothing.

@@ -215,8 +222,10 @@ mxmlElementGetAttr(
- - + +
NameDescription
nodeElement node
nameName of attribute
nodeElement node +
nameName of attribute +

Returns

Attribute value or NULL

@@ -240,9 +249,12 @@ mxmlElementSetAttr(
- - - + + +
NameDescription
nodeElement node
nameName of attribute
valueAttribute value
nodeElement node +
nameName of attribute +
valueAttribute value +

Returns

Nothing.

@@ -269,10 +281,14 @@ mxmlElementSetAttrf(
- - - - + + + +
NameDescription
nodeElement node
nameName of attribute
formatPrintf-style attribute value
...Additional arguments as needed
nodeElement node +
nameName of attribute +
formatPrintf-style attribute value +
...Additional arguments as needed +

Returns

Nothing.

@@ -304,7 +320,8 @@ mxmlEntityGetName(
- +
NameDescription
valCharacter value
valCharacter value +

Returns

Entity name or NULL

@@ -324,7 +341,8 @@ mxmlEntityGetValue(
- +
NameDescription
nameEntity name
nameEntity name +

Returns

Character value or -1 on error

@@ -368,12 +386,18 @@ mxmlFindElement(
- - - - - - + + + + + +
NameDescription
nodeCurrent node
topTop node
nameElement name or NULL for any
attrAttribute name, or NULL for none
valueAttribute value, or NULL for any
descendDescend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST
nodeCurrent node +
topTop node +
nameElement name or NULL for any +
attrAttribute name, or NULL for none +
valueAttribute value, or NULL for any +
descendDescend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST +

Returns

Element node or NULL

@@ -391,7 +415,8 @@ mxmlIndexDelete(
- +
NameDescription
indIndex to delete
indIndex to delete +

Returns

Nothing.

@@ -410,7 +435,8 @@ mxmlIndexEnum(
- +
NameDescription
indIndex to enumerate
indIndex to enumerate +

Returns

Next node or NULL if there is none

@@ -434,9 +460,12 @@ mxmlIndexFind(
- - - + + +
NameDescription
indIndex to search
elementElement name to find, if any
valueAttribute value, if any
indIndex to search +
elementElement name to find, if any +
valueAttribute value, if any +

Returns

Node or NULL if none found

@@ -461,9 +490,12 @@ mxmlIndexNew(
- - - + + +
NameDescription
nodeXML node tree
elementElement to index or NULL for all
attrAttribute to index or NULL for none
nodeXML node tree +
elementElement to index or NULL for all +
attrAttribute to index or NULL for none +

Returns

New index

@@ -484,7 +516,8 @@ mxmlIndexReset(
- +
NameDescription
indIndex to reset
indIndex to reset +

Returns

First node or NULL if there is none

@@ -513,9 +546,12 @@ mxmlLoadFd(
- - - + + +
NameDescription
topTop node
fdFile descriptor to read from
cbCallback function or MXML_NO_CALLBACK
topTop node +
fdFile descriptor to read from +
cbCallback function or MXML_NO_CALLBACK +

Returns

First node or NULL if the file could not be read.

@@ -544,9 +580,12 @@ mxmlLoadFile(
- - - + + +
NameDescription
topTop node
fpFile to read from
cbCallback function or MXML_NO_CALLBACK
topTop node +
fpFile to read from +
cbCallback function or MXML_NO_CALLBACK +

Returns

First node or NULL if the file could not be read.

@@ -575,9 +614,12 @@ mxmlLoadString(
- - - + + +
NameDescription
topTop node
sString to load
cbCallback function or MXML_NO_CALLBACK
topTop node +
sString to load +
cbCallback function or MXML_NO_CALLBACK +

Returns

First node or NULL if the string has errors.

@@ -602,8 +644,10 @@ mxmlNewCDATA(
- - + +
NameDescription
parentParent node or MXML_NO_PARENT
dataData string
parentParent node or MXML_NO_PARENT +
dataData string +

Returns

New node

@@ -629,9 +673,12 @@ mxmlNewCustom(
- - - + + +
NameDescription
parentParent node or MXML_NO_PARENT
dataPointer to data
destroyFunction to destroy data
parentParent node or MXML_NO_PARENT +
dataPointer to data +
destroyFunction to destroy data +

Returns

New node

@@ -653,8 +700,10 @@ mxmlNewElement(
- - + +
NameDescription
parentParent node or MXML_NO_PARENT
nameName of element
parentParent node or MXML_NO_PARENT +
nameName of element +

Returns

New node

@@ -676,8 +725,10 @@ mxmlNewInteger(
- - + +
NameDescription
parentParent node or MXML_NO_PARENT
integerInteger value
parentParent node or MXML_NO_PARENT +
integerInteger value +

Returns

New node

@@ -700,8 +751,10 @@ mxmlNewOpaque(
- - + +
NameDescription
parentParent node or MXML_NO_PARENT
opaqueOpaque string
parentParent node or MXML_NO_PARENT +
opaqueOpaque string +

Returns

New node

@@ -723,8 +776,10 @@ mxmlNewReal(
- - + +
NameDescription
parentParent node or MXML_NO_PARENT
realReal number value
parentParent node or MXML_NO_PARENT +
realReal number value +

Returns

New node

@@ -749,9 +804,12 @@ mxmlNewText(
- - - + + +
NameDescription
parentParent node or MXML_NO_PARENT
whitespace1 = leading whitespace, 0 = no whitespace
stringString
parentParent node or MXML_NO_PARENT +
whitespace1 = leading whitespace, 0 = no whitespace +
stringString +

Returns

New node

@@ -777,10 +835,14 @@ mxmlNewTextf(
- - - - + + + +
NameDescription
parentParent node or MXML_NO_PARENT
whitespace1 = leading whitespace, 0 = no whitespace
formatPrintf-style frmat string
...Additional args as needed
parentParent node or MXML_NO_PARENT +
whitespace1 = leading whitespace, 0 = no whitespace +
formatPrintf-style frmat string +
...Additional args as needed +

Returns

New node

@@ -802,7 +864,8 @@ mxmlNewXML(
- +
NameDescription
versionVersion number to use
versionVersion number to use +

Returns

New ?xml node

@@ -824,7 +887,8 @@ mxmlRelease(
- +
NameDescription
nodeNode
nodeNode +

Returns

New reference count

@@ -844,7 +908,8 @@ mxmlRemove(
- +
NameDescription
nodeNode to remove
nodeNode to remove +

Returns

Nothing.

@@ -864,7 +929,8 @@ mxmlRetain(
- +
NameDescription
nodeNode
nodeNode +

Returns

New reference count

@@ -901,11 +967,16 @@ mxmlSAXLoadFd(
- - - - - + + + + +
NameDescription
topTop node
fdFile descriptor to read from
cbCallback function or MXML_NO_CALLBACK
sax_cbSAX callback or MXML_NO_CALLBACK
sax_dataSAX user data
topTop node +
fdFile descriptor to read from +
cbCallback function or MXML_NO_CALLBACK +
sax_cbSAX callback or MXML_NO_CALLBACK +
sax_dataSAX user data +

Returns

First node or NULL if the file could not be read.

@@ -942,11 +1013,16 @@ mxmlSAXLoadFile(
- - - - - + + + + +
NameDescription
topTop node
fpFile to read from
cbCallback function or MXML_NO_CALLBACK
sax_cbSAX callback or MXML_NO_CALLBACK
sax_dataSAX user data
topTop node +
fpFile to read from +
cbCallback function or MXML_NO_CALLBACK +
sax_cbSAX callback or MXML_NO_CALLBACK +
sax_dataSAX user data +

Returns

First node or NULL if the file could not be read.

@@ -983,11 +1059,16 @@ mxmlSAXLoadString(
- - - - - + + + + +
NameDescription
topTop node
sString to load
cbCallback function or MXML_NO_CALLBACK
sax_cbSAX callback or MXML_NO_CALLBACK
sax_dataSAX user data
topTop node +
sString to load +
cbCallback function or MXML_NO_CALLBACK +
sax_cbSAX callback or MXML_NO_CALLBACK +
sax_dataSAX user data +

Returns

First node or NULL if the string has errors.

@@ -1016,8 +1097,10 @@ mxmlSaveAllocString(
- - + +
NameDescription
nodeNode to write
cbWhitespace callback or MXML_NO_CALLBACK
nodeNode to write +
cbWhitespace callback or MXML_NO_CALLBACK +

Returns

Allocated string or NULL

@@ -1042,9 +1125,12 @@ mxmlSaveFd(
- - - + + +
NameDescription
nodeNode to write
fdFile descriptor to write to
cbWhitespace callback or MXML_NO_CALLBACK
nodeNode to write +
fdFile descriptor to write to +
cbWhitespace callback or MXML_NO_CALLBACK +

Returns

0 on success, -1 on error.

@@ -1069,9 +1155,12 @@ mxmlSaveFile(
- - - + + +
NameDescription
nodeNode to write
fpFile to write to
cbWhitespace callback or MXML_NO_CALLBACK
nodeNode to write +
fpFile to write to +
cbWhitespace callback or MXML_NO_CALLBACK +

Returns

0 on success, -1 on error.

@@ -1100,10 +1189,14 @@ mxmlSaveString(
- - - - + + + +
NameDescription
nodeNode to write
bufferString buffer
bufsizeSize of string buffer
cbWhitespace callback or MXML_NO_CALLBACK
nodeNode to write +
bufferString buffer +
bufsizeSize of string buffer +
cbWhitespace callback or MXML_NO_CALLBACK +

Returns

Size of string

@@ -1125,8 +1218,10 @@ mxmlSetCDATA(
- - + +
NameDescription
nodeNode to set
dataNew data string
nodeNode to set +
dataNew data string +

Returns

0 on success, -1 on failure

@@ -1149,9 +1244,12 @@ mxmlSetCustom(
- - - + + +
NameDescription
nodeNode to set
dataNew data pointer
destroyNew destructor function
nodeNode to set +
dataNew data pointer +
destroyNew destructor function +

Returns

0 on success, -1 on failure

@@ -1174,8 +1272,10 @@ mxmlSetCustomHandlers(
- - + +
NameDescription
loadLoad function
saveSave function
loadLoad function +
saveSave function +

Returns

Nothing.

@@ -1195,8 +1295,10 @@ mxmlSetElement(
- - + +
NameDescription
nodeNode to set
nameNew name string
nodeNode to set +
nameNew name string +

Returns

0 on success, -1 on failure

@@ -1214,7 +1316,8 @@ mxmlSetErrorCallback(
- +
NameDescription
cbError callback function
cbError callback function +

Returns

Nothing.

@@ -1234,8 +1337,10 @@ mxmlSetInteger(
- - + +
NameDescription
nodeNode to set
integerInteger value
nodeNode to set +
integerInteger value +

Returns

0 on success, -1 on failure

@@ -1255,8 +1360,10 @@ mxmlSetOpaque(
- - + +
NameDescription
nodeNode to set
opaqueOpaque string
nodeNode to set +
opaqueOpaque string +

Returns

0 on success, -1 on failure

@@ -1276,8 +1383,10 @@ mxmlSetReal(
- - + +
NameDescription
nodeNode to set
realReal number value
nodeNode to set +
realReal number value +

Returns

0 on success, -1 on failure

@@ -1298,9 +1407,12 @@ mxmlSetText(
- - - + + +
NameDescription
nodeNode to set
whitespace1 = leading whitespace, 0 = no whitespace
stringString
nodeNode to set +
whitespace1 = leading whitespace, 0 = no whitespace +
stringString +

Returns

0 on success, -1 on failure

@@ -1322,10 +1434,14 @@ mxmlSetTextf(
- - - - + + + +
NameDescription
nodeNode to set
whitespace1 = leading whitespace, 0 = no whitespace
formatPrintf-style format string
...Additional arguments as needed
nodeNode to set +
whitespace1 = leading whitespace, 0 = no whitespace +
formatPrintf-style format string +
...Additional arguments as needed +

Returns

0 on success, -1 on failure

@@ -1346,7 +1462,8 @@ mxmlSetWrapMargin(
- +
NameDescription
columnColumn for wrapping
columnColumn for wrapping +

Returns

Nothing.

@@ -1369,9 +1486,12 @@ mxmlWalkNext(
- - - + + +
NameDescription
nodeCurrent node
topTop node
descendDescend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST
nodeCurrent node +
topTop node +
descendDescend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST +

Returns

Next node or NULL

@@ -1394,9 +1514,12 @@ mxmlWalkPrev(
- - - + + +
NameDescription
nodeCurrent node
topTop node
descendDescend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST
nodeCurrent node +
topTop node +
descendDescend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST +

Returns

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 @@ * * + * xsi:schemaLocation="http://www.minixml.org/mxmldoc.xsd"> * * [optional...] * @@ -742,7 +742,7 @@ new_documentation(mxml_node_t **mxmldoc)/* O - mxmldoc node */ mxmlElementSetAttr(*mxmldoc, "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); mxmlElementSetAttr(*mxmldoc, "xsi:schemaLocation", - "http://www.easysw.com/~mike/mxml/mxmldoc.xsd"); + "http://www.minixml.org/mxmldoc.xsd"); return (doc); } @@ -2855,9 +2855,9 @@ write_html( { printf("%s", mxmlElementGetAttr(arg, "name")); - write_element(NULL, mxmlFindElement(arg, arg, "description", NULL, - NULL, MXML_DESCEND_FIRST), - OUTPUT_HTML); + write_description(mxmlFindElement(arg, arg, "description", NULL, + NULL, MXML_DESCEND_FIRST), + OUTPUT_HTML); puts(""); }