mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-24 11:25:30 +00:00
Normalize on passing "mode" instead of "xhtml" flag.
Update generated documentation.
This commit is contained in:
parent
bba295b908
commit
0381fdaf3c
@ -1,4 +1,4 @@
|
||||
.TH mxml 3 "Mini-XML API" "04/06/17" "Mini-XML API"
|
||||
.TH mxml 3 "Mini-XML API" "04/07/17" "Mini-XML API"
|
||||
.SH NAME
|
||||
mxml \- Mini-XML API
|
||||
.SH INCLUDE FILE
|
||||
|
@ -239,11 +239,11 @@ h3.title {
|
||||
<h3 class="function"><a id="mxmlAdd">mxmlAdd</a></h3>
|
||||
<p class="description">Add a node to a tree.</p>
|
||||
<p class="code">
|
||||
void mxmlAdd (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br />
|
||||
    int where,<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *child,<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
void mxmlAdd (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br>
|
||||
    int where,<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *child,<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -266,8 +266,8 @@ MXML_ADD_TO_PARENT can be used to specify a NULL child pointer.</p>
|
||||
<h3 class="function"><a id="mxmlDelete">mxmlDelete</a></h3>
|
||||
<p class="description">Delete a node and all of its children.</p>
|
||||
<p class="code">
|
||||
void mxmlDelete (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
void mxmlDelete (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -280,9 +280,9 @@ node from its parent using the mxmlRemove() function.</p>
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.4 </span><a id="mxmlElementDeleteAttr">mxmlElementDeleteAttr</a></h3>
|
||||
<p class="description">Delete an attribute.</p>
|
||||
<p class="code">
|
||||
void mxmlElementDeleteAttr (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    const char *name<br />
|
||||
void mxmlElementDeleteAttr (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    const char *name<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -294,9 +294,9 @@ void mxmlElementDeleteAttr (<br />
|
||||
<h3 class="function"><a id="mxmlElementGetAttr">mxmlElementGetAttr</a></h3>
|
||||
<p class="description">Get an attribute.</p>
|
||||
<p class="code">
|
||||
const char *mxmlElementGetAttr (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    const char *name<br />
|
||||
const char *mxmlElementGetAttr (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    const char *name<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -313,10 +313,10 @@ named attribute does not exist.</p>
|
||||
<h3 class="function"><a id="mxmlElementSetAttr">mxmlElementSetAttr</a></h3>
|
||||
<p class="description">Set an attribute.</p>
|
||||
<p class="code">
|
||||
void mxmlElementSetAttr (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    const char *name,<br />
|
||||
    const char *value<br />
|
||||
void mxmlElementSetAttr (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    const char *name,<br>
|
||||
    const char *value<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -335,11 +335,11 @@ not an element.</p>
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.3 </span><a id="mxmlElementSetAttrf">mxmlElementSetAttrf</a></h3>
|
||||
<p class="description">Set an attribute with a formatted value.</p>
|
||||
<p class="code">
|
||||
void mxmlElementSetAttrf (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    const char *name,<br />
|
||||
    const char *format,<br />
|
||||
    ...<br />
|
||||
void mxmlElementSetAttrf (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    const char *name,<br>
|
||||
    const char *format,<br>
|
||||
    ...<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -362,8 +362,8 @@ is not an element.
|
||||
<h3 class="function"><a id="mxmlEntityAddCallback">mxmlEntityAddCallback</a></h3>
|
||||
<p class="description">Add a callback to convert entities to Unicode.</p>
|
||||
<p class="code">
|
||||
int mxmlEntityAddCallback (<br />
|
||||
    <a href="#mxml_entity_cb_t">mxml_entity_cb_t</a> cb<br />
|
||||
int mxmlEntityAddCallback (<br>
|
||||
    <a href="#mxml_entity_cb_t">mxml_entity_cb_t</a> cb<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -375,8 +375,8 @@ int mxmlEntityAddCallback (<br />
|
||||
<h3 class="function"><a id="mxmlEntityGetName">mxmlEntityGetName</a></h3>
|
||||
<p class="description">Get the name that corresponds to the character value.</p>
|
||||
<p class="code">
|
||||
const char *mxmlEntityGetName (<br />
|
||||
    int val<br />
|
||||
const char *mxmlEntityGetName (<br>
|
||||
    int val<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -390,8 +390,8 @@ const char *mxmlEntityGetName (<br />
|
||||
<h3 class="function"><a id="mxmlEntityGetValue">mxmlEntityGetValue</a></h3>
|
||||
<p class="description">Get the character corresponding to a named entity.</p>
|
||||
<p class="code">
|
||||
int mxmlEntityGetValue (<br />
|
||||
    const char *name<br />
|
||||
int mxmlEntityGetValue (<br>
|
||||
    const char *name<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -406,8 +406,8 @@ name is not known.</p>
|
||||
<h3 class="function"><a id="mxmlEntityRemoveCallback">mxmlEntityRemoveCallback</a></h3>
|
||||
<p class="description">Remove a callback.</p>
|
||||
<p class="code">
|
||||
void mxmlEntityRemoveCallback (<br />
|
||||
    <a href="#mxml_entity_cb_t">mxml_entity_cb_t</a> cb<br />
|
||||
void mxmlEntityRemoveCallback (<br>
|
||||
    <a href="#mxml_entity_cb_t">mxml_entity_cb_t</a> cb<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -417,13 +417,13 @@ void mxmlEntityRemoveCallback (<br />
|
||||
<h3 class="function"><a id="mxmlFindElement">mxmlFindElement</a></h3>
|
||||
<p class="description">Find the named element.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlFindElement (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br />
|
||||
    const char *name,<br />
|
||||
    const char *attr,<br />
|
||||
    const char *value,<br />
|
||||
    int descend<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlFindElement (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br>
|
||||
    const char *name,<br>
|
||||
    const char *attr,<br>
|
||||
    const char *value,<br>
|
||||
    int descend<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -454,9 +454,9 @@ constrains the search to a particular node's children.</p>
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlFindPath">mxmlFindPath</a></h3>
|
||||
<p class="description">Find a node with the given path.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlFindPath (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br />
|
||||
    const char *path<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlFindPath (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br>
|
||||
    const char *path<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -479,8 +479,8 @@ children and the first child is a value node.
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlGetCDATA">mxmlGetCDATA</a></h3>
|
||||
<p class="description">Get the value for a CDATA node.</p>
|
||||
<p class="code">
|
||||
const char *mxmlGetCDATA (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
const char *mxmlGetCDATA (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -496,8 +496,8 @@ const char *mxmlGetCDATA (<br />
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlGetCustom">mxmlGetCustom</a></h3>
|
||||
<p class="description">Get the value for a custom node.</p>
|
||||
<p class="code">
|
||||
const void *mxmlGetCustom (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
const void *mxmlGetCustom (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -514,8 +514,8 @@ value node.
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlGetElement">mxmlGetElement</a></h3>
|
||||
<p class="description">Get the name for an element node.</p>
|
||||
<p class="code">
|
||||
const char *mxmlGetElement (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
const char *mxmlGetElement (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -531,8 +531,8 @@ const char *mxmlGetElement (<br />
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlGetFirstChild">mxmlGetFirstChild</a></h3>
|
||||
<p class="description">Get the first child of an element node.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlGetFirstChild (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlGetFirstChild (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -550,8 +550,8 @@ has no children.
|
||||
<p class="description">Get the integer value from the specified node or its
|
||||
first child.</p>
|
||||
<p class="code">
|
||||
int mxmlGetInteger (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
int mxmlGetInteger (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -567,8 +567,8 @@ int mxmlGetInteger (<br />
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlGetLastChild">mxmlGetLastChild</a></h3>
|
||||
<p class="description">Get the last child of an element node.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlGetLastChild (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlGetLastChild (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -585,8 +585,8 @@ has no children.
|
||||
<h3 class="function"><a id="mxmlGetNextSibling">mxmlGetNextSibling</a></h3>
|
||||
<p class="description">Return the node type...</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlGetNextSibling (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlGetNextSibling (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -601,8 +601,8 @@ has no children.
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlGetOpaque">mxmlGetOpaque</a></h3>
|
||||
<p class="description">Get an opaque string value for a node or its first child.</p>
|
||||
<p class="code">
|
||||
const char *mxmlGetOpaque (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
const char *mxmlGetOpaque (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -619,8 +619,8 @@ value node.
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlGetParent">mxmlGetParent</a></h3>
|
||||
<p class="description">Get the parent node.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlGetParent (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlGetParent (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -636,8 +636,8 @@ value node.
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlGetPrevSibling">mxmlGetPrevSibling</a></h3>
|
||||
<p class="description">Get the previous node for the current parent.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlGetPrevSibling (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlGetPrevSibling (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -653,8 +653,8 @@ value node.
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlGetReal">mxmlGetReal</a></h3>
|
||||
<p class="description">Get the real value for a node or its first child.</p>
|
||||
<p class="code">
|
||||
double mxmlGetReal (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
double mxmlGetReal (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -670,8 +670,8 @@ double mxmlGetReal (<br />
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlGetRefCount">mxmlGetRefCount</a></h3>
|
||||
<p class="description">Get the current reference (use) count for a node.</p>
|
||||
<p class="code">
|
||||
int mxmlGetRefCount (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
int mxmlGetRefCount (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -689,9 +689,9 @@ reference count.
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlGetText">mxmlGetText</a></h3>
|
||||
<p class="description">Get the text value for a node or its first child.</p>
|
||||
<p class="code">
|
||||
const char *mxmlGetText (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    int *whitespace<br />
|
||||
const char *mxmlGetText (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    int *whitespace<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -710,8 +710,8 @@ The "whitespace" argument can be NULL.
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlGetType">mxmlGetType</a></h3>
|
||||
<p class="description">Get the node type.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_type_t">mxml_type_t</a> mxmlGetType (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
<a href="#mxml_type_t">mxml_type_t</a> mxmlGetType (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -727,8 +727,8 @@ The "whitespace" argument can be NULL.
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlGetUserData">mxmlGetUserData</a></h3>
|
||||
<p class="description">Get the user data pointer for a node.</p>
|
||||
<p class="code">
|
||||
void *mxmlGetUserData (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
void *mxmlGetUserData (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -740,8 +740,8 @@ void *mxmlGetUserData (<br />
|
||||
<h3 class="function"><a id="mxmlIndexDelete">mxmlIndexDelete</a></h3>
|
||||
<p class="description">Delete an index.</p>
|
||||
<p class="code">
|
||||
void mxmlIndexDelete (<br />
|
||||
    <a href="#mxml_index_t">mxml_index_t</a> *ind<br />
|
||||
void mxmlIndexDelete (<br>
|
||||
    <a href="#mxml_index_t">mxml_index_t</a> *ind<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -751,8 +751,8 @@ void mxmlIndexDelete (<br />
|
||||
<h3 class="function"><a id="mxmlIndexEnum">mxmlIndexEnum</a></h3>
|
||||
<p class="description">Return the next node in the index.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlIndexEnum (<br />
|
||||
    <a href="#mxml_index_t">mxml_index_t</a> *ind<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlIndexEnum (<br>
|
||||
    <a href="#mxml_index_t">mxml_index_t</a> *ind<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -766,10 +766,10 @@ void mxmlIndexDelete (<br />
|
||||
<h3 class="function"><a id="mxmlIndexFind">mxmlIndexFind</a></h3>
|
||||
<p class="description">Find the next matching node.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlIndexFind (<br />
|
||||
    <a href="#mxml_index_t">mxml_index_t</a> *ind,<br />
|
||||
    const char *element,<br />
|
||||
    const char *value<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlIndexFind (<br>
|
||||
    <a href="#mxml_index_t">mxml_index_t</a> *ind,<br>
|
||||
    const char *element,<br>
|
||||
    const char *value<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -790,8 +790,8 @@ to calling mxmlIndexEnum().</p>
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlIndexGetCount">mxmlIndexGetCount</a></h3>
|
||||
<p class="description">Get the number of nodes in an index.</p>
|
||||
<p class="code">
|
||||
int mxmlIndexGetCount (<br />
|
||||
    <a href="#mxml_index_t">mxml_index_t</a> *ind<br />
|
||||
int mxmlIndexGetCount (<br>
|
||||
    <a href="#mxml_index_t">mxml_index_t</a> *ind<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -803,10 +803,10 @@ int mxmlIndexGetCount (<br />
|
||||
<h3 class="function"><a id="mxmlIndexNew">mxmlIndexNew</a></h3>
|
||||
<p class="description">Create a new index.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_index_t">mxml_index_t</a> *mxmlIndexNew (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    const char *element,<br />
|
||||
    const char *attr<br />
|
||||
<a href="#mxml_index_t">mxml_index_t</a> *mxmlIndexNew (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    const char *element,<br>
|
||||
    const char *attr<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -829,8 +829,8 @@ argument is not NULL.</p>
|
||||
<p class="description">Reset the enumeration/find pointer in the index and
|
||||
return the first node in the index.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlIndexReset (<br />
|
||||
    <a href="#mxml_index_t">mxml_index_t</a> *ind<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlIndexReset (<br>
|
||||
    <a href="#mxml_index_t">mxml_index_t</a> *ind<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -845,10 +845,10 @@ mxmlIndexFind() for the first time.</p>
|
||||
<h3 class="function"><a id="mxmlLoadFd">mxmlLoadFd</a></h3>
|
||||
<p class="description">Load a file descriptor into an XML node tree.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlLoadFd (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br />
|
||||
    int fd,<br />
|
||||
    <a href="#mxml_load_cb_t">mxml_load_cb_t</a> cb<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlLoadFd (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br>
|
||||
    int fd,<br>
|
||||
    <a href="#mxml_load_cb_t">mxml_load_cb_t</a> cb<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -875,10 +875,10 @@ child nodes of the specified type.</p>
|
||||
<h3 class="function"><a id="mxmlLoadFile">mxmlLoadFile</a></h3>
|
||||
<p class="description">Load a file into an XML node tree.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlLoadFile (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br />
|
||||
    FILE *fp,<br />
|
||||
    <a href="#mxml_load_cb_t">mxml_load_cb_t</a> cb<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlLoadFile (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br>
|
||||
    FILE *fp,<br>
|
||||
    <a href="#mxml_load_cb_t">mxml_load_cb_t</a> cb<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -905,10 +905,10 @@ child nodes of the specified type.</p>
|
||||
<h3 class="function"><a id="mxmlLoadString">mxmlLoadString</a></h3>
|
||||
<p class="description">Load a string into an XML node tree.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlLoadString (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br />
|
||||
    const char *s,<br />
|
||||
    <a href="#mxml_load_cb_t">mxml_load_cb_t</a> cb<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlLoadString (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br>
|
||||
    const char *s,<br>
|
||||
    <a href="#mxml_load_cb_t">mxml_load_cb_t</a> cb<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -935,9 +935,9 @@ child nodes of the specified type.</p>
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.3 </span><a id="mxmlNewCDATA">mxmlNewCDATA</a></h3>
|
||||
<p class="description">Create a new CDATA node.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewCDATA (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br />
|
||||
    const char *data<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewCDATA (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br>
|
||||
    const char *data<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -958,10 +958,10 @@ is copied into the new node. CDATA nodes use the MXML_ELEMENT type.
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.1 </span><a id="mxmlNewCustom">mxmlNewCustom</a></h3>
|
||||
<p class="description">Create a new custom data node.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewCustom (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br />
|
||||
    void *data,<br />
|
||||
    <a href="#mxml_custom_destroy_cb_t">mxml_custom_destroy_cb_t</a> destroy<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewCustom (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br>
|
||||
    void *data,<br>
|
||||
    <a href="#mxml_custom_destroy_cb_t">mxml_custom_destroy_cb_t</a> destroy<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -984,9 +984,9 @@ node is not dynamically allocated or is separately managed.
|
||||
<h3 class="function"><a id="mxmlNewElement">mxmlNewElement</a></h3>
|
||||
<p class="description">Create a new element node.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewElement (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br />
|
||||
    const char *name<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewElement (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br>
|
||||
    const char *name<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1004,9 +1004,9 @@ element node has no parent.</p>
|
||||
<h3 class="function"><a id="mxmlNewInteger">mxmlNewInteger</a></h3>
|
||||
<p class="description">Create a new integer node.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewInteger (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br />
|
||||
    int integer<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewInteger (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br>
|
||||
    int integer<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1024,9 +1024,9 @@ integer node has no parent.</p>
|
||||
<h3 class="function"><a id="mxmlNewOpaque">mxmlNewOpaque</a></h3>
|
||||
<p class="description">Create a new opaque string.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewOpaque (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br />
|
||||
    const char *opaque<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewOpaque (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br>
|
||||
    const char *opaque<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1045,9 +1045,9 @@ is copied into the new node.</p>
|
||||
<h3 class="function"><a id="mxmlNewReal">mxmlNewReal</a></h3>
|
||||
<p class="description">Create a new real number node.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewReal (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br />
|
||||
    double real<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewReal (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br>
|
||||
    double real<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1065,10 +1065,10 @@ the new real number node has no parent.</p>
|
||||
<h3 class="function"><a id="mxmlNewText">mxmlNewText</a></h3>
|
||||
<p class="description">Create a new text fragment node.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewText (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br />
|
||||
    int whitespace,<br />
|
||||
    const char *string<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewText (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br>
|
||||
    int whitespace,<br>
|
||||
    const char *string<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1090,11 +1090,11 @@ string must be nul-terminated and is copied into the new node.</p>
|
||||
<h3 class="function"><a id="mxmlNewTextf">mxmlNewTextf</a></h3>
|
||||
<p class="description">Create a new formatted text fragment node.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewTextf (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br />
|
||||
    int whitespace,<br />
|
||||
    const char *format,<br />
|
||||
    ...<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewTextf (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *parent,<br>
|
||||
    int whitespace,<br>
|
||||
    const char *format,<br>
|
||||
    ...<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1118,8 +1118,8 @@ string must be nul-terminated and is formatted into the new node.</p>
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.3 </span><a id="mxmlNewXML">mxmlNewXML</a></h3>
|
||||
<p class="description">Create a new XML document tree.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewXML (<br />
|
||||
    const char *version<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlNewXML (<br>
|
||||
    const char *version<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1136,8 +1136,8 @@ string must be nul-terminated and is formatted into the new node.</p>
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.3 </span><a id="mxmlRelease">mxmlRelease</a></h3>
|
||||
<p class="description">Release a node.</p>
|
||||
<p class="code">
|
||||
int mxmlRelease (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
int mxmlRelease (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1154,8 +1154,8 @@ is deleted via mxmlDelete().
|
||||
<h3 class="function"><a id="mxmlRemove">mxmlRemove</a></h3>
|
||||
<p class="description">Remove a node from its parent.</p>
|
||||
<p class="code">
|
||||
void mxmlRemove (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
void mxmlRemove (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1168,8 +1168,8 @@ This function does nothing if the node has no parent.</p>
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.3 </span><a id="mxmlRetain">mxmlRetain</a></h3>
|
||||
<p class="description">Retain a node.</p>
|
||||
<p class="code">
|
||||
int mxmlRetain (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br />
|
||||
int mxmlRetain (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1182,12 +1182,12 @@ int mxmlRetain (<br />
|
||||
<p class="description">Load a file descriptor into an XML node tree
|
||||
using a SAX callback.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlSAXLoadFd (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br />
|
||||
    int fd,<br />
|
||||
    <a href="#mxml_load_cb_t">mxml_load_cb_t</a> cb,<br />
|
||||
    <a href="#mxml_sax_cb_t">mxml_sax_cb_t</a> sax_cb,<br />
|
||||
    void *sax_data<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlSAXLoadFd (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br>
|
||||
    int fd,<br>
|
||||
    <a href="#mxml_load_cb_t">mxml_load_cb_t</a> cb,<br>
|
||||
    <a href="#mxml_sax_cb_t">mxml_sax_cb_t</a> sax_cb,<br>
|
||||
    void *sax_data<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1225,12 +1225,12 @@ node is closed or after each data, comment, CDATA, or directive node.
|
||||
<p class="description">Load a file into an XML node tree
|
||||
using a SAX callback.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlSAXLoadFile (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br />
|
||||
    FILE *fp,<br />
|
||||
    <a href="#mxml_load_cb_t">mxml_load_cb_t</a> cb,<br />
|
||||
    <a href="#mxml_sax_cb_t">mxml_sax_cb_t</a> sax_cb,<br />
|
||||
    void *sax_data<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlSAXLoadFile (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br>
|
||||
    FILE *fp,<br>
|
||||
    <a href="#mxml_load_cb_t">mxml_load_cb_t</a> cb,<br>
|
||||
    <a href="#mxml_sax_cb_t">mxml_sax_cb_t</a> sax_cb,<br>
|
||||
    void *sax_data<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1268,12 +1268,12 @@ node is closed or after each data, comment, CDATA, or directive node.
|
||||
<p class="description">Load a string into an XML node tree
|
||||
using a SAX callback.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlSAXLoadString (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br />
|
||||
    const char *s,<br />
|
||||
    <a href="#mxml_load_cb_t">mxml_load_cb_t</a> cb,<br />
|
||||
    <a href="#mxml_sax_cb_t">mxml_sax_cb_t</a> sax_cb,<br />
|
||||
    void *sax_data<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlSAXLoadString (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br>
|
||||
    const char *s,<br>
|
||||
    <a href="#mxml_load_cb_t">mxml_load_cb_t</a> cb,<br>
|
||||
    <a href="#mxml_sax_cb_t">mxml_sax_cb_t</a> sax_cb,<br>
|
||||
    void *sax_data<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1310,9 +1310,9 @@ node is closed or after each data, comment, CDATA, or directive node.
|
||||
<h3 class="function"><a id="mxmlSaveAllocString">mxmlSaveAllocString</a></h3>
|
||||
<p class="description">Save an XML tree to an allocated string.</p>
|
||||
<p class="code">
|
||||
char *mxmlSaveAllocString (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    <a href="#mxml_save_cb_t">mxml_save_cb_t</a> cb<br />
|
||||
char *mxmlSaveAllocString (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    <a href="#mxml_save_cb_t">mxml_save_cb_t</a> cb<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1338,10 +1338,10 @@ element tags.</p>
|
||||
<h3 class="function"><a id="mxmlSaveFd">mxmlSaveFd</a></h3>
|
||||
<p class="description">Save an XML tree to a file descriptor.</p>
|
||||
<p class="code">
|
||||
int mxmlSaveFd (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    int fd,<br />
|
||||
    <a href="#mxml_save_cb_t">mxml_save_cb_t</a> cb<br />
|
||||
int mxmlSaveFd (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    int fd,<br>
|
||||
    <a href="#mxml_save_cb_t">mxml_save_cb_t</a> cb<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1363,10 +1363,10 @@ element tags.</p>
|
||||
<h3 class="function"><a id="mxmlSaveFile">mxmlSaveFile</a></h3>
|
||||
<p class="description">Save an XML tree to a file.</p>
|
||||
<p class="code">
|
||||
int mxmlSaveFile (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    FILE *fp,<br />
|
||||
    <a href="#mxml_save_cb_t">mxml_save_cb_t</a> cb<br />
|
||||
int mxmlSaveFile (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    FILE *fp,<br>
|
||||
    <a href="#mxml_save_cb_t">mxml_save_cb_t</a> cb<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1388,11 +1388,11 @@ element tags.</p>
|
||||
<h3 class="function"><a id="mxmlSaveString">mxmlSaveString</a></h3>
|
||||
<p class="description">Save an XML node tree to a string.</p>
|
||||
<p class="code">
|
||||
int mxmlSaveString (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    char *buffer,<br />
|
||||
    int bufsize,<br />
|
||||
    <a href="#mxml_save_cb_t">mxml_save_cb_t</a> cb<br />
|
||||
int mxmlSaveString (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    char *buffer,<br>
|
||||
    int bufsize,<br>
|
||||
    <a href="#mxml_save_cb_t">mxml_save_cb_t</a> cb<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1420,9 +1420,9 @@ element tags.</p>
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.3 </span><a id="mxmlSetCDATA">mxmlSetCDATA</a></h3>
|
||||
<p class="description">Set the element name of a CDATA node.</p>
|
||||
<p class="code">
|
||||
int mxmlSetCDATA (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    const char *data<br />
|
||||
int mxmlSetCDATA (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    const char *data<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1440,10 +1440,10 @@ int mxmlSetCDATA (<br />
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.1 </span><a id="mxmlSetCustom">mxmlSetCustom</a></h3>
|
||||
<p class="description">Set the data and destructor of a custom data node.</p>
|
||||
<p class="code">
|
||||
int mxmlSetCustom (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    void *data,<br />
|
||||
    <a href="#mxml_custom_destroy_cb_t">mxml_custom_destroy_cb_t</a> destroy<br />
|
||||
int mxmlSetCustom (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    void *data,<br>
|
||||
    <a href="#mxml_custom_destroy_cb_t">mxml_custom_destroy_cb_t</a> destroy<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1463,9 +1463,9 @@ int mxmlSetCustom (<br />
|
||||
<h3 class="function"><a id="mxmlSetCustomHandlers">mxmlSetCustomHandlers</a></h3>
|
||||
<p class="description">Set the handling functions for custom data.</p>
|
||||
<p class="code">
|
||||
void mxmlSetCustomHandlers (<br />
|
||||
    <a href="#mxml_custom_load_cb_t">mxml_custom_load_cb_t</a> load,<br />
|
||||
    <a href="#mxml_custom_save_cb_t">mxml_custom_save_cb_t</a> save<br />
|
||||
void mxmlSetCustomHandlers (<br>
|
||||
    <a href="#mxml_custom_load_cb_t">mxml_custom_load_cb_t</a> load,<br>
|
||||
    <a href="#mxml_custom_save_cb_t">mxml_custom_save_cb_t</a> save<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1483,9 +1483,9 @@ string on success and NULL on error.</p>
|
||||
<h3 class="function"><a id="mxmlSetElement">mxmlSetElement</a></h3>
|
||||
<p class="description">Set the name of an element node.</p>
|
||||
<p class="code">
|
||||
int mxmlSetElement (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    const char *name<br />
|
||||
int mxmlSetElement (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    const char *name<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1501,8 +1501,8 @@ int mxmlSetElement (<br />
|
||||
<h3 class="function"><a id="mxmlSetErrorCallback">mxmlSetErrorCallback</a></h3>
|
||||
<p class="description">Set the error message callback.</p>
|
||||
<p class="code">
|
||||
void mxmlSetErrorCallback (<br />
|
||||
    <a href="#mxml_error_cb_t">mxml_error_cb_t</a> cb<br />
|
||||
void mxmlSetErrorCallback (<br>
|
||||
    <a href="#mxml_error_cb_t">mxml_error_cb_t</a> cb<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1512,9 +1512,9 @@ void mxmlSetErrorCallback (<br />
|
||||
<h3 class="function"><a id="mxmlSetInteger">mxmlSetInteger</a></h3>
|
||||
<p class="description">Set the value of an integer node.</p>
|
||||
<p class="code">
|
||||
int mxmlSetInteger (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    int integer<br />
|
||||
int mxmlSetInteger (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    int integer<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1530,9 +1530,9 @@ int mxmlSetInteger (<br />
|
||||
<h3 class="function"><a id="mxmlSetOpaque">mxmlSetOpaque</a></h3>
|
||||
<p class="description">Set the value of an opaque node.</p>
|
||||
<p class="code">
|
||||
int mxmlSetOpaque (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    const char *opaque<br />
|
||||
int mxmlSetOpaque (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    const char *opaque<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1548,9 +1548,9 @@ int mxmlSetOpaque (<br />
|
||||
<h3 class="function"><a id="mxmlSetReal">mxmlSetReal</a></h3>
|
||||
<p class="description">Set the value of a real number node.</p>
|
||||
<p class="code">
|
||||
int mxmlSetReal (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    double real<br />
|
||||
int mxmlSetReal (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    double real<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1566,10 +1566,10 @@ int mxmlSetReal (<br />
|
||||
<h3 class="function"><a id="mxmlSetText">mxmlSetText</a></h3>
|
||||
<p class="description">Set the value of a text node.</p>
|
||||
<p class="code">
|
||||
int mxmlSetText (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    int whitespace,<br />
|
||||
    const char *string<br />
|
||||
int mxmlSetText (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    int whitespace,<br>
|
||||
    const char *string<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1587,11 +1587,11 @@ int mxmlSetText (<br />
|
||||
<h3 class="function"><a id="mxmlSetTextf">mxmlSetTextf</a></h3>
|
||||
<p class="description">Set the value of a text node to a formatted string.</p>
|
||||
<p class="code">
|
||||
int mxmlSetTextf (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    int whitespace,<br />
|
||||
    const char *format,<br />
|
||||
    ...<br />
|
||||
int mxmlSetTextf (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    int whitespace,<br>
|
||||
    const char *format,<br>
|
||||
    ...<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1611,9 +1611,9 @@ int mxmlSetTextf (<br />
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.7 </span><a id="mxmlSetUserData">mxmlSetUserData</a></h3>
|
||||
<p class="description">Set the user data pointer for a node.</p>
|
||||
<p class="code">
|
||||
int mxmlSetUserData (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    void *data<br />
|
||||
int mxmlSetUserData (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    void *data<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1627,8 +1627,8 @@ int mxmlSetUserData (<br />
|
||||
<h3 class="function"><span class="info"> Mini-XML 2.3 </span><a id="mxmlSetWrapMargin">mxmlSetWrapMargin</a></h3>
|
||||
<p class="description">Set the wrap margin when saving XML data.</p>
|
||||
<p class="code">
|
||||
void mxmlSetWrapMargin (<br />
|
||||
    int column<br />
|
||||
void mxmlSetWrapMargin (<br>
|
||||
    int column<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1642,10 +1642,10 @@ void mxmlSetWrapMargin (<br />
|
||||
<h3 class="function"><a id="mxmlWalkNext">mxmlWalkNext</a></h3>
|
||||
<p class="description">Walk to the next logical node in the tree.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlWalkNext (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br />
|
||||
    int descend<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlWalkNext (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br>
|
||||
    int descend<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
@ -1665,10 +1665,10 @@ the node's children.</p>
|
||||
<h3 class="function"><a id="mxmlWalkPrev">mxmlWalkPrev</a></h3>
|
||||
<p class="description">Walk to the previous logical node in the tree.</p>
|
||||
<p class="code">
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlWalkPrev (<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br />
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br />
|
||||
    int descend<br />
|
||||
<a href="#mxml_node_t">mxml_node_t</a> *mxmlWalkPrev (<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *node,<br>
|
||||
    <a href="#mxml_node_t">mxml_node_t</a> *top,<br>
|
||||
    int descend<br>
|
||||
);</p>
|
||||
<h4 class="parameters">Parameters</h4>
|
||||
<dl>
|
||||
|
39
mxmldoc.c
39
mxmldoc.c
@ -179,13 +179,13 @@ static void write_description(FILE *out, mxml_node_t *description, const char *
|
||||
static void write_element(FILE *out, mxml_node_t *doc, mxml_node_t *element, int mode);
|
||||
static void write_epub(const char *epubfile, const char *section, const char *title, const char *author, const char *copyright, const char *docversion, const char *cssfile, const char *headerfile, const char *introfile, mxml_node_t *doc, const char *footerfile);
|
||||
static void write_file(FILE *out, const char *file, int mode);
|
||||
static void write_function(FILE *out, int xhtml, mxml_node_t *doc, mxml_node_t *function, int level);
|
||||
static void write_function(FILE *out, int mode, mxml_node_t *doc, mxml_node_t *function, int level);
|
||||
static void write_html(const char *framefile, const char *docset, const char *section, const char *title, const char *author, const char *copyright, const char *docversion, const char *feedname, const char *feedurl, const char *cssfile, const char *headerfile, const char *introfile, mxml_node_t *doc, const char *footerfile);
|
||||
static void write_html_body(FILE *out, int mode, const char *introfile, mxml_node_t *doc);
|
||||
static void write_html_head(FILE *out, int mode, const char *section, const char *title, const char *author, const char *copyright, const char *cssfile);
|
||||
static void write_html_toc(FILE *out, const char *title, toc_t *toc, const char *filename, const char *target);
|
||||
static void write_man(const char *man_name, const char *section, const char *title, const char *author, const char *copyright, const char *headerfile, const char *introfile, mxml_node_t *doc, const char *footerfile);
|
||||
static void write_scu(FILE *out, int xhtml, mxml_node_t *doc, mxml_node_t *scut);
|
||||
static void write_scu(FILE *out, int mode, mxml_node_t *doc, mxml_node_t *scut);
|
||||
static void write_string(FILE *out, const char *s, int mode);
|
||||
static void write_tokens(FILE *out, mxml_node_t *doc, const char *path);
|
||||
static const char *ws_cb(mxml_node_t *node, int where);
|
||||
@ -3743,11 +3743,26 @@ write_file(FILE *out, /* I - Output file */
|
||||
{
|
||||
for (ptr = line; *ptr; ptr ++)
|
||||
{
|
||||
if (*ptr == '&' && !strncmp(ptr + 1, "nbsp;", 5))
|
||||
if (!strncmp(ptr, " ", 6))
|
||||
{
|
||||
ptr += 5;
|
||||
fputs(" ", out);
|
||||
}
|
||||
else if (!strncmp(ptr, "©", 6))
|
||||
{
|
||||
ptr += 5;
|
||||
fputs("©", out);
|
||||
}
|
||||
else if (!strncmp(ptr, "®", 5))
|
||||
{
|
||||
ptr += 4;
|
||||
fputs("®", out);
|
||||
}
|
||||
else if (!strncmp(ptr, "™", 7))
|
||||
{
|
||||
ptr += 6;
|
||||
fputs("™", out);
|
||||
}
|
||||
else
|
||||
fputc(*ptr, out);
|
||||
}
|
||||
@ -3769,7 +3784,7 @@ write_file(FILE *out, /* I - Output file */
|
||||
|
||||
static void
|
||||
write_function(FILE *out, /* I - Output file */
|
||||
int xhtml, /* I - XHTML output? */
|
||||
int mode, /* I - Output mode */
|
||||
mxml_node_t *doc, /* I - Document */
|
||||
mxml_node_t *function, /* I - Function */
|
||||
int level) /* I - Base heading level */
|
||||
@ -3783,7 +3798,7 @@ write_function(FILE *out, /* I - Output file */
|
||||
*defval; /* Default value */
|
||||
char prefix; /* Prefix character */
|
||||
char *sep; /* Newline separator */
|
||||
const char *br = xhtml ? "<br />" : "<br>";
|
||||
const char *br = mode == OUTPUT_EPUB ? "<br />" : "<br>";
|
||||
/* Break sequence */
|
||||
|
||||
|
||||
@ -4422,7 +4437,7 @@ write_html_body(
|
||||
|
||||
while (scut)
|
||||
{
|
||||
write_scu(out, 1, doc, scut);
|
||||
write_scu(out, mode, doc, scut);
|
||||
|
||||
scut = find_public(scut, doc, "class", NULL);
|
||||
}
|
||||
@ -4438,7 +4453,7 @@ write_html_body(
|
||||
|
||||
while (function)
|
||||
{
|
||||
write_function(out, 1, doc, function, 3);
|
||||
write_function(out, mode, doc, function, 3);
|
||||
|
||||
function = find_public(function, doc, "function", NULL);
|
||||
}
|
||||
@ -4551,7 +4566,7 @@ write_html_body(
|
||||
|
||||
while (scut)
|
||||
{
|
||||
write_scu(out, 1, doc, scut);
|
||||
write_scu(out, mode, doc, scut);
|
||||
|
||||
scut = find_public(scut, doc, "struct", NULL);
|
||||
}
|
||||
@ -4567,7 +4582,7 @@ write_html_body(
|
||||
|
||||
while (scut)
|
||||
{
|
||||
write_scu(out, 1, doc, scut);
|
||||
write_scu(out, mode, doc, scut);
|
||||
|
||||
scut = find_public(scut, doc, "union", NULL);
|
||||
}
|
||||
@ -5479,7 +5494,7 @@ write_man(const char *man_name, /* I - Name of manpage */
|
||||
|
||||
static void
|
||||
write_scu(FILE *out, /* I - Output file */
|
||||
int xhtml, /* I - XHTML output? */
|
||||
int mode, /* I - Output mode */
|
||||
mxml_node_t *doc, /* I - Document */
|
||||
mxml_node_t *scut) /* I - Structure, class, or union */
|
||||
{
|
||||
@ -5496,7 +5511,7 @@ write_scu(FILE *out, /* I - Output file */
|
||||
int inscope, /* Variable/method scope */
|
||||
maxscope; /* Maximum scope */
|
||||
char prefix; /* Prefix character */
|
||||
const char *br = xhtml ? "<br />" : "<br>";
|
||||
const char *br = mode == OUTPUT_EPUB ? "<br />" : "<br>";
|
||||
/* Break sequence */
|
||||
static const char * const scopes[] = /* Scope strings */
|
||||
{
|
||||
@ -5639,7 +5654,7 @@ write_scu(FILE *out, /* I - Output file */
|
||||
function = mxmlFindElement(function, scut, "function", NULL, NULL,
|
||||
MXML_NO_DESCEND))
|
||||
{
|
||||
write_function(out, xhtml, doc, function, 4);
|
||||
write_function(out, mode, doc, function, 4);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user