⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reference.html

📁 minixml2.5最新的版本。 嵌入式xml 解析、查找、生成、遍历 功能,全部实现是标准c,移植很容易。 最新的2.5
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html><head><title>Documentation</title><meta name="creator" content="Mini-XML v2.5"><style type="text/css"><!--body, p, h1, h2, h3, h4 {  font-family: lucida grande, geneva, helvetica, arial, sans-serif;}div.body h1 {  font-size: 250%;  font-weight: bold;  margin: 0;}div.body h2 {  font-size: 250%;  margin-top: 1.5em;}div.body h3 {  font-size: 150%;  margin-bottom: 0.5em;  margin-top: 1.5em;}div.body h4 {  font-size: 110%;  margin-bottom: 0.5em;  margin-top: 1.5em;}div.body h5 {  font-size: 100%;  margin-bottom: 0.5em;  margin-top: 1.5em;}div.contents {  background: #e8e8e8;  border: solid thin black;  padding: 10px;}div.contents h1 {  font-size: 110%;}div.contents h2 {  font-size: 100%;}div.contents ul.contents {  font-size: 80%;}.class {  border-bottom: solid 2px gray;}.constants {}.description {  margin-top: 0.5em;}.discussion {}.enumeration {  border-bottom: solid 2px gray;}.function {  border-bottom: solid 2px gray;  margin-bottom: 0;}.members {}.method {}.parameters {}.returnvalue {}.struct {  border-bottom: solid 2px gray;}.typedef {  border-bottom: solid 2px gray;}.union {  border-bottom: solid 2px gray;}.variable {}code, p.code, pre, ul.code li {  font-family: monaco, courier, monospace;  font-size: 90%;}a:link, a:visited {  text-decoration: none;}span.info {  background: black;  border: solid thin black;  color: white;  font-size: 80%;  font-style: italic;  font-weight: bold;  white-space: nowrap;}h3 span.info, h4 span.info {  float: right;  font-size: 100%;}ul.code, ul.contents, ul.subcontents {  list-style-type: none;  margin: 0;  padding-left: 0;}ul.code li {  margin: 0;}ul.contents > li {  margin-top: 1em;}ul.contents li ul.code, ul.contents li ul.subcontents {  padding-left: 2em;}div.body dl {  margin-top: 0;}div.body dt {  font-style: italic;  margin-top: 0;}div.body dd {  margin-bottom: 0.5em;}h1.title {}h2.title {  border-bottom: solid 2px black;}h3.title {  border-bottom: solid 2px black;}--></style></head><body><div class='body'><h1 align='right'><a name='REFERENCE'><img src="C.gif" align="right"hspace="10" width="100" height="100" alt="C"></a>LibraryReference</h1><h2 class="title">Contents</h2><ul class="contents"><li><a href="#FUNCTIONS">Functions</a><ul class="code"><li><a href="#mxmlAdd" title="Add a node to a tree.">mxmlAdd</a></li><li><a href="#mxmlDelete" title="Delete a node and all of its children.">mxmlDelete</a></li><li><a href="#mxmlElementDeleteAttr" title="Delete an attribute.">mxmlElementDeleteAttr</a></li><li><a href="#mxmlElementGetAttr" title="Get an attribute.">mxmlElementGetAttr</a></li><li><a href="#mxmlElementSetAttr" title="Set an attribute.">mxmlElementSetAttr</a></li><li><a href="#mxmlElementSetAttrf" title="Set an attribute with a formatted value.">mxmlElementSetAttrf</a></li><li><a href="#mxmlEntityAddCallback" title="Add a callback to convert entities to Unicode.">mxmlEntityAddCallback</a></li><li><a href="#mxmlEntityGetName" title="Get the name that corresponds to the character value.">mxmlEntityGetName</a></li><li><a href="#mxmlEntityGetValue" title="Get the character corresponding to a named entity.">mxmlEntityGetValue</a></li><li><a href="#mxmlEntityRemoveCallback" title="Remove a callback.">mxmlEntityRemoveCallback</a></li><li><a href="#mxmlFindElement" title="Find the named element.">mxmlFindElement</a></li><li><a href="#mxmlIndexDelete" title="Delete an index.">mxmlIndexDelete</a></li><li><a href="#mxmlIndexEnum" title="Return the next node in the index.">mxmlIndexEnum</a></li><li><a href="#mxmlIndexFind" title="Find the next matching node.">mxmlIndexFind</a></li><li><a href="#mxmlIndexNew" title="Create a new index.">mxmlIndexNew</a></li><li><a href="#mxmlIndexReset" title="Reset the enumeration/find pointer in the index andreturn the first node in the index.">mxmlIndexReset</a></li><li><a href="#mxmlLoadFd" title="Load a file descriptor into an XML node tree.">mxmlLoadFd</a></li><li><a href="#mxmlLoadFile" title="Load a file into an XML node tree.">mxmlLoadFile</a></li><li><a href="#mxmlLoadString" title="Load a string into an XML node tree.">mxmlLoadString</a></li><li><a href="#mxmlNewCDATA" title="Create a new CDATA node.">mxmlNewCDATA</a></li><li><a href="#mxmlNewCustom" title="Create a new custom data node.">mxmlNewCustom</a></li><li><a href="#mxmlNewElement" title="Create a new element node.">mxmlNewElement</a></li><li><a href="#mxmlNewInteger" title="Create a new integer node.">mxmlNewInteger</a></li><li><a href="#mxmlNewOpaque" title="Create a new opaque string.">mxmlNewOpaque</a></li><li><a href="#mxmlNewReal" title="Create a new real number node.">mxmlNewReal</a></li><li><a href="#mxmlNewText" title="Create a new text fragment node.">mxmlNewText</a></li><li><a href="#mxmlNewTextf" title="Create a new formatted text fragment node.">mxmlNewTextf</a></li><li><a href="#mxmlNewXML" title="Create a new XML document tree.">mxmlNewXML</a></li><li><a href="#mxmlRelease" title="Release a node.">mxmlRelease</a></li><li><a href="#mxmlRemove" title="Remove a node from its parent.">mxmlRemove</a></li><li><a href="#mxmlRetain" title="Retain a node.">mxmlRetain</a></li><li><a href="#mxmlSAXLoadFd" title="Load a file descriptor into an XML node treeusing a SAX callback.">mxmlSAXLoadFd</a></li><li><a href="#mxmlSAXLoadFile" title="Load a file into an XML node treeusing a SAX callback.">mxmlSAXLoadFile</a></li><li><a href="#mxmlSAXLoadString" title="Load a string into an XML node treeusing a SAX callback.">mxmlSAXLoadString</a></li><li><a href="#mxmlSaveAllocString" title="Save an XML node tree to an allocated string.">mxmlSaveAllocString</a></li><li><a href="#mxmlSaveFd" title="Save an XML tree to a file descriptor.">mxmlSaveFd</a></li><li><a href="#mxmlSaveFile" title="Save an XML tree to a file.">mxmlSaveFile</a></li><li><a href="#mxmlSaveString" title="Save an XML node tree to a string.">mxmlSaveString</a></li><li><a href="#mxmlSetCDATA" title="Set the element name of a CDATA node.">mxmlSetCDATA</a></li><li><a href="#mxmlSetCustom" title="Set the data and destructor of a custom data node.">mxmlSetCustom</a></li><li><a href="#mxmlSetCustomHandlers" title="Set the handling functions for custom data.">mxmlSetCustomHandlers</a></li><li><a href="#mxmlSetElement" title="Set the name of an element node.">mxmlSetElement</a></li><li><a href="#mxmlSetErrorCallback" title="Set the error message callback.">mxmlSetErrorCallback</a></li><li><a href="#mxmlSetInteger" title="Set the value of an integer node.">mxmlSetInteger</a></li><li><a href="#mxmlSetOpaque" title="Set the value of an opaque node.">mxmlSetOpaque</a></li><li><a href="#mxmlSetReal" title="Set the value of a real number node.">mxmlSetReal</a></li><li><a href="#mxmlSetText" title="Set the value of a text node.">mxmlSetText</a></li><li><a href="#mxmlSetTextf" title="Set the value of a text node to a formatted string.">mxmlSetTextf</a></li><li><a href="#mxmlSetWrapMargin" title="Set the the wrap margin when saving XML data.">mxmlSetWrapMargin</a></li><li><a href="#mxmlWalkNext" title="Walk to the next logical node in the tree.">mxmlWalkNext</a></li><li><a href="#mxmlWalkPrev" title="Walk to the previous logical node in the tree.">mxmlWalkPrev</a></li></ul><li><a href="#TYPES">Data Types</a><ul class="code">	<li><a href="#mxml_attr_t" title="An XML element attribute value.">mxml_attr_t</a></li>	<li><a href="#mxml_custom_destroy_cb_t" title="Custom data destructor">mxml_custom_destroy_cb_t</a></li>	<li><a href="#mxml_custom_load_cb_t" title="Custom data load callback function">mxml_custom_load_cb_t</a></li>	<li><a href="#mxml_custom_save_cb_t" title="Custom data save callback function">mxml_custom_save_cb_t</a></li>	<li><a href="#mxml_custom_t" title="An XML custom value. ">mxml_custom_t</a></li>	<li><a href="#mxml_element_t" title="An XML element value.">mxml_element_t</a></li>	<li><a href="#mxml_error_cb_t" title="Error callback function">mxml_error_cb_t</a></li>	<li><a href="#mxml_index_t" title="An XML node index.">mxml_index_t</a></li>	<li><a href="#mxml_load_cb_t" title="Load callback function">mxml_load_cb_t</a></li>	<li><a href="#mxml_node_t" title="An XML node.">mxml_node_t</a></li>	<li><a href="#mxml_save_cb_t" title="Save callback function">mxml_save_cb_t</a></li>	<li><a href="#mxml_sax_cb_t" title="SAX callback function">mxml_sax_cb_t</a></li>	<li><a href="#mxml_sax_event_t" title="SAX event type.">mxml_sax_event_t</a></li>	<li><a href="#mxml_text_t" title="An XML text value.">mxml_text_t</a></li>	<li><a href="#mxml_value_t" title="An XML node value.">mxml_value_t</a></li></ul></li><li><a href="#STRUCTURES">Structures</a><ul class="code">	<li><a href="#mxml_attr_s" title="An XML element attribute value.">mxml_attr_s</a></li>	<li><a href="#mxml_custom_s" title="An XML custom value. ">mxml_custom_s</a></li>	<li><a href="#mxml_element_s" title="An XML element value.">mxml_element_s</a></li>	<li><a href="#mxml_index_s" title="An XML node index.">mxml_index_s</a></li>	<li><a href="#mxml_node_s" title="An XML node.">mxml_node_s</a></li>	<li><a href="#mxml_text_s" title="An XML text value.">mxml_text_s</a></li></ul></li><li><a href="#UNIONS">Unions</a><ul class="code">	<li><a href="#mxml_value_u" title="An XML node value.">mxml_value_u</a></li></ul></li><li><a href="#ENUMERATIONS">Constants</a><ul class="code">	<li><a href="#mxml_sax_event_e" title="SAX event type.">mxml_sax_event_e</a></li>	<li><a href="#mxml_type_e" title="The XML node type.">mxml_type_e</a></li></ul></li></ul><h2 class="title"><a name="FUNCTIONS">Functions</a></h2><h3 class="function"><a name="mxmlAdd">mxmlAdd</a></h3><p class="description">Add a node to a tree.</p><p class="code">void mxmlAdd (<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#mxml_node_t">mxml_node_t</a> *parent,<br>&nbsp;&nbsp;&nbsp;&nbsp;int where,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#mxml_node_t">mxml_node_t</a> *child,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#mxml_node_t">mxml_node_t</a> *node<br>);</p><h4 class="parameters">Parameters</h4><dl><dt>parent</dt><dd class="description">Parent node</dd><dt>where</dt><dd class="description">Where to add, MXML_ADD_BEFORE or MXML_ADD_AFTER</dd><dt>child</dt><dd class="description">Child node for where or MXML_ADD_TO_PARENT</dd><dt>node</dt><dd class="description">Node to add</dd></dl><h4 class="discussion">Discussion</h4><p class="discussion">Adds the specified node to the parent. If the child argument is notNULL, puts the new node before or after the specified child dependingon the value of the where argument. If the child argument is NULL,puts the new node at the beginning of the child list (MXML_ADD_BEFORE)or at the end of the child list (MXML_ADD_AFTER). The constantMXML_ADD_TO_PARENT can be used to specify a NULL child pointer.</p><h3 class="function"><a name="mxmlDelete">mxmlDelete</a></h3><p class="description">Delete a node and all of its children.</p><p class="code">void mxmlDelete (<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#mxml_node_t">mxml_node_t</a> *node<br>);</p><h4 class="parameters">Parameters</h4><dl><dt>node</dt><dd class="description">Node to delete</dd></dl><h4 class="discussion">Discussion</h4><p class="discussion">If the specified node has a parent, this function first removes thenode from its parent using the mxmlRemove() function.</p><h3 class="function"><span class="info">&nbsp;Mini-XML 2.4&nbsp;</span><a name="mxmlElementDeleteAttr">mxmlElementDeleteAttr</a></h3><p class="description">Delete an attribute.</p><p class="code">void mxmlElementDeleteAttr (<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#mxml_node_t">mxml_node_t</a> *node,<br>&nbsp;&nbsp;&nbsp;&nbsp;const char *name<br>);</p><h4 class="parameters">Parameters</h4><dl><dt>node</dt><dd class="description">Element</dd><dt>name</dt><dd class="description">Attribute name</dd></dl><h3 class="function"><a name="mxmlElementGetAttr">mxmlElementGetAttr</a></h3><p class="description">Get an attribute.</p><p class="code">const char *mxmlElementGetAttr (<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#mxml_node_t">mxml_node_t</a> *node,<br>&nbsp;&nbsp;&nbsp;&nbsp;const char *name<br>);</p><h4 class="parameters">Parameters</h4><dl><dt>node</dt><dd class="description">Element node</dd><dt>name</dt><dd class="description">Name of attribute</dd></dl><h4 class="returnvalue">Return Value</h4><p class="description">Attribute value or NULL</p><h4 class="discussion">Discussion</h4><p class="discussion">This function returns NULL if the node is not an element or thenamed attribute does not exist.</p><h3 class="function"><a name="mxmlElementSetAttr">mxmlElementSetAttr</a></h3><p class="description">Set an attribute.</p><p class="code">void mxmlElementSetAttr (<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#mxml_node_t">mxml_node_t</a> *node,<br>&nbsp;&nbsp;&nbsp;&nbsp;const char *name,<br>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -