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

📄 mxml.xml

📁 minixml2.5最新的版本。 嵌入式xml 解析、查找、生成、遍历 功能,全部实现是标准c,移植很容易。 最新的2.5
💻 XML
📖 第 1 页 / 共 4 页
字号:
<?xml version="1.0"?><mxmldocxmlns="http://www.easysw.com"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.minixml.org/mxmldoc.xsd">  <function name="mxmlAdd">    <description>Add a node to a tree.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.</description>    <argument name="parent" direction="I">      <type>mxml_node_t *</type>      <description>Parent node</description>    </argument>    <argument name="where" direction="I">      <type>int</type>      <description>Where to add, MXML_ADD_BEFORE or MXML_ADD_AFTER</description>    </argument>    <argument name="child" direction="I">      <type>mxml_node_t *</type>      <description>Child node for where or MXML_ADD_TO_PARENT</description>    </argument>    <argument name="node" direction="I">      <type>mxml_node_t *</type>      <description>Node to add</description>    </argument>  </function>  <function name="mxmlDelete">    <description>Delete a node and all of its children.If the specified node has a parent, this function first removes thenode from its parent using the mxmlRemove() function.</description>    <argument name="node" direction="I">      <type>mxml_node_t *</type>      <description>Node to delete</description>    </argument>  </function>  <function name="mxmlElementDeleteAttr">    <description>Delete an attribute.@since Mini-XML 2.4@</description>    <argument name="node" direction="I">      <type>mxml_node_t *</type>      <description>Element</description>    </argument>    <argument name="name" direction="I">      <type>const char *</type>      <description>Attribute name</description>    </argument>  </function>  <function name="mxmlElementGetAttr">    <returnvalue>      <type>const char *</type>      <description>Attribute value or NULL</description>    </returnvalue>    <description>Get an attribute.This function returns NULL if the node is not an element or thenamed attribute does not exist.</description>    <argument name="node" direction="I">      <type>mxml_node_t *</type>      <description>Element node</description>    </argument>    <argument name="name" direction="I">      <type>const char *</type>      <description>Name of attribute</description>    </argument>  </function>  <function name="mxmlElementSetAttr">    <description>Set an attribute.If the named attribute already exists, the value of the attributeis replaced by the new string value. The string value is copiedinto the element node. This function does nothing if the node isnot an element.</description>    <argument name="node" direction="I">      <type>mxml_node_t *</type>      <description>Element node</description>    </argument>    <argument name="name" direction="I">      <type>const char *</type>      <description>Name of attribute</description>    </argument>    <argument name="value" direction="I">      <type>const char *</type>      <description>Attribute value</description>    </argument>  </function>  <function name="mxmlElementSetAttrf">    <description>Set an attribute with a formatted value.If the named attribute already exists, the value of the attributeis replaced by the new formatted string. The formatted string value iscopied into the element node. This function does nothing if the nodeis not an element.@since Mini-XML 2.3@</description>    <argument name="node" direction="I">      <type>mxml_node_t *</type>      <description>Element node</description>    </argument>    <argument name="name" direction="I">      <type>const char *</type>      <description>Name of attribute</description>    </argument>    <argument name="format" direction="I">      <type>const char *</type>      <description>Printf-style attribute value</description>    </argument>    <argument name="..." direction="I">      <type />      <description>Additional arguments as needed</description>    </argument>  </function>  <function name="mxmlEntityAddCallback">    <returnvalue>      <type>int</type>      <description>0 on success, -1 on failure</description>    </returnvalue>    <description>Add a callback to convert entities to Unicode.</description>  </function>  <function name="mxmlEntityGetName">    <returnvalue>      <type>const char *</type>      <description>Entity name or NULL</description>    </returnvalue>    <description>Get the name that corresponds to the character value.If val does not need to be represented by a named entity, NULL is returned.</description>    <argument name="val" direction="I">      <type>int</type>      <description>Character value</description>    </argument>  </function>  <function name="mxmlEntityGetValue">    <returnvalue>      <type>int</type>      <description>Character value or -1 on error</description>    </returnvalue>    <description>Get the character corresponding to a named entity.The entity name can also be a numeric constant. -1 is returned if thename is not known.</description>    <argument name="name" direction="I">      <type>const char *</type>      <description>Entity name</description>    </argument>  </function>  <function name="mxmlEntityRemoveCallback">    <description>Remove a callback.</description>  </function>  <function name="mxmlFindElement">    <returnvalue>      <type>mxml_node_t *</type>      <description>Element node or NULL</description>    </returnvalue>    <description>Find the named element.The search is constrained by the name, attribute name, and value; anyNULL names or values are treated as wildcards, so different kinds ofsearches can be implemented by looking for all elements of a given nameor all elements with a specific attribute. The descend argument determineswhether the search descends into child nodes; normally you will useMXML_DESCEND_FIRST for the initial search and MXML_NO_DESCEND to findadditional direct descendents of the node. The top node argumentconstrains the search to a particular node's children.</description>    <argument name="node" direction="I">      <type>mxml_node_t *</type>      <description>Current node</description>    </argument>    <argument name="top" direction="I">      <type>mxml_node_t *</type>      <description>Top node</description>    </argument>    <argument name="name" direction="I">      <type>const char *</type>      <description>Element name or NULL for any</description>    </argument>    <argument name="attr" direction="I">      <type>const char *</type>      <description>Attribute name, or NULL for none</description>    </argument>    <argument name="value" direction="I">      <type>const char *</type>      <description>Attribute value, or NULL for any</description>    </argument>    <argument name="descend" direction="I">      <type>int</type>      <description>Descend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST</description>    </argument>  </function>  <function name="mxmlIndexDelete">    <description>Delete an index.</description>    <argument name="ind" direction="I">      <type>mxml_index_t *</type>      <description>Index to delete</description>    </argument>  </function>  <function name="mxmlIndexEnum">    <returnvalue>      <type>mxml_node_t *</type>      <description>Next node or NULL if there is none</description>    </returnvalue>    <description>Return the next node in the index.Nodes are returned in the sorted order of the index.</description>    <argument name="ind" direction="I">      <type>mxml_index_t *</type>      <description>Index to enumerate</description>    </argument>  </function>  <function name="mxmlIndexFind">    <returnvalue>      <type>mxml_node_t *</type>      <description>Node or NULL if none found</description>    </returnvalue>    <description>Find the next matching node.You should call mxmlIndexReset() prior to using this function forthe first time with a particular set of &quot;element&quot; and &quot;value&quot;strings. Passing NULL for both &quot;element&quot; and &quot;value&quot; is equivalentto calling mxmlIndexEnum().</description>    <argument name="ind" direction="I">      <type>mxml_index_t *</type>      <description>Index to search</description>    </argument>    <argument name="element" direction="I">      <type>const char *</type>      <description>Element name to find, if any</description>    </argument>    <argument name="value" direction="I">      <type>const char *</type>      <description>Attribute value, if any</description>    </argument>  </function>  <function name="mxmlIndexNew">    <returnvalue>      <type>mxml_index_t *</type>      <description>New index</description>    </returnvalue>    <description>Create a new index.The index will contain all nodes that contain the named element and/orattribute. If both &quot;element&quot; and &quot;attr&quot; are NULL, then the index willcontain a sorted list of the elements in the node tree.  Nodes aresorted by element name and optionally by attribute value if the &quot;attr&quot;argument is not NULL.</description>    <argument name="node" direction="I">      <type>mxml_node_t *</type>      <description>XML node tree</description>    </argument>    <argument name="element" direction="I">      <type>const char *</type>      <description>Element to index or NULL for all</description>    </argument>    <argument name="attr" direction="I">      <type>const char *</type>      <description>Attribute to index or NULL for none</description>    </argument>  </function>  <function name="mxmlIndexReset">    <returnvalue>      <type>mxml_node_t *</type>      <description>First node or NULL if there is none</description>    </returnvalue>    <description>Reset the enumeration/find pointer in the index andreturn the first node in the index.This function should be called prior to using mxmlIndexEnum() ormxmlIndexFind() for the first time.</description>    <argument name="ind" direction="I">      <type>mxml_index_t *</type>      <description>Index to reset</description>    </argument>  </function>  <function name="mxmlLoadFd">    <returnvalue>      <type>mxml_node_t *</type>      <description>First node or NULL if the file could not be read.</description>    </returnvalue>    <description>Load a file descriptor into an XML node tree.The nodes in the specified file are added to the specified top node.If no top node is provided, the XML file MUST be well-formed with asingle parent node like &lt;?xml&gt; for the entire file. The callbackfunction returns the value type that should be used for child nodes.If MXML_NO_CALLBACK is specified then all child nodes will be eitherMXML_ELEMENT or MXML_TEXT nodes.The constants MXML_INTEGER_CALLBACK, MXML_OPAQUE_CALLBACK,MXML_REAL_CALLBACK, and MXML_TEXT_CALLBACK are defined for loadingchild nodes of the specified type.</description>    <argument name="top" direction="I">      <type>mxml_node_t *</type>      <description>Top node</description>    </argument>    <argument name="fd" direction="I">      <type>int</type>      <description>File descriptor to read from</description>    </argument>    <argument name="cb" direction="I">      <type>mxml_load_cb_t</type>      <description>Callback function or MXML_NO_CALLBACK</description>    </argument>  </function>  <function name="mxmlLoadFile">    <returnvalue>      <type>mxml_node_t *</type>      <description>First node or NULL if the file could not be read.</description>    </returnvalue>    <description>Load a file into an XML node tree.The nodes in the specified file are added to the specified top node.If no top node is provided, the XML file MUST be well-formed with asingle parent node like &lt;?xml&gt; for the entire file. The callbackfunction returns the value type that should be used for child nodes.If MXML_NO_CALLBACK is specified then all child nodes will be eitherMXML_ELEMENT or MXML_TEXT nodes.The constants MXML_INTEGER_CALLBACK, MXML_OPAQUE_CALLBACK,MXML_REAL_CALLBACK, and MXML_TEXT_CALLBACK are defined for loadingchild nodes of the specified type.</description>    <argument name="top" direction="I">      <type>mxml_node_t *</type>      <description>Top node</description>    </argument>    <argument name="fp" direction="I">      <type>FILE *</type>      <description>File to read from</description>    </argument>

⌨️ 快捷键说明

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