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

📄 mxml.xml

📁 适用于嵌入式系统的XML解析库, 规模比libxml2小得多.
💻 XML
📖 第 1 页 / 共 4 页
字号:
      <type>const char *</type>      <description>String</description>    </argument>  </function>  <function name="mxmlSetTextf">    <returnvalue>      <type>int</type>      <description>0 on success, -1 on failure</description>    </returnvalue>    <description>Set the value of a text node to a formatted string.The node is not changed if it is not a text node.</description>    <argument name="node" direction="I">      <type>mxml_node_t *</type>      <description>Node to set</description>    </argument>    <argument name="whitespace" direction="I">      <type>int</type>      <description>1 = leading whitespace, 0 = no whitespace</description>    </argument>    <argument name="format" direction="I">      <type>const char *</type>      <description>Printf-style format string</description>    </argument>    <argument name="..." direction="I">      <type />      <description>Additional arguments as needed</description>    </argument>  </function>  <function name="mxmlSetWrapMargin">    <description>Set the the wrap margin when saving XML data.Wrapping is disabled when &quot;column&quot; is &lt;= 0.@since Mini-XML 2.3@</description>    <argument name="column" direction="I">      <type>int</type>      <description>Column for wrapping</description>    </argument>  </function>  <function name="mxmlWalkNext">    <returnvalue>      <type>mxml_node_t *</type>      <description>Next node or NULL</description>    </returnvalue>    <description>Walk to the next logical node in the tree.The descend argument controls whether the first child is consideredto be the next node. The top node argument constrains the walk tothe 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="descend" direction="I">      <type>int</type>      <description>Descend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST</description>    </argument>  </function>  <function name="mxmlWalkPrev">    <returnvalue>      <type>mxml_node_t *</type>      <description>Previous node or NULL</description>    </returnvalue>    <description>Walk to the previous logical node in the tree.The descend argument controls whether the previous node's last childis considered to be the previous node. The top node argument constrainsthe walk to the 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="descend" direction="I">      <type>int</type>      <description>Descend into tree - MXML_DESCEND, MXML_NO_DESCEND, or MXML_DESCEND_FIRST</description>    </argument>  </function>  <struct name="mxml_attr_s">    <description>An XML element attribute value.</description>    <variable name="name">      <type>char *</type>      <description>Attribute name</description>    </variable>    <variable name="value">      <type>char *</type>      <description>Attribute value</description>    </variable>  </struct>  <typedef name="mxml_attr_t">    <type>struct mxml_attr_s</type>    <description>An XML element attribute value.</description>  </typedef>  <typedef name="mxml_custom_destroy_cb_t">    <type>void(*)(void *)</type>    <description>Custom data destructor</description>  </typedef>  <typedef name="mxml_custom_load_cb_t">    <type>int(*)(mxml_node_t *, const char *)</type>    <description>Custom data load callback function</description>  </typedef>  <struct name="mxml_custom_s">    <description>An XML custom value. @since Mini-XML 2.1@</description>    <variable name="data">      <type>void *</type>      <description>Pointer to (allocated) custom data</description>    </variable>    <variable name="destroy">      <type>mxml_custom_destroy_cb_t</type>      <description>Pointer to destructor function</description>    </variable>  </struct>  <typedef name="mxml_custom_save_cb_t">    <type>char *(*)(mxml_node_t *)</type>    <description>Custom data save callback function</description>  </typedef>  <typedef name="mxml_custom_t">    <type>struct mxml_custom_s</type>    <description>An XML custom value. @since Mini-XML 2.1@</description>  </typedef>  <struct name="mxml_element_s">    <description>An XML element value.</description>    <variable name="attrs">      <type>mxml_attr_t *</type>      <description>Attributes</description>    </variable>    <variable name="name">      <type>char *</type>      <description>Name of element</description>    </variable>    <variable name="num_attrs">      <type>int</type>      <description>Number of attributes</description>    </variable>  </struct>  <typedef name="mxml_element_t">    <type>struct mxml_element_s</type>    <description>An XML element value.</description>  </typedef>  <typedef name="mxml_error_cb_t">    <type>void(*)(const char *)</type>    <description>Error callback function</description>  </typedef>  <struct name="mxml_index_s">    <description>An XML node index.</description>    <variable name="alloc_nodes">      <type>int</type>      <description>Allocated nodes in index</description>    </variable>    <variable name="attr">      <type>char *</type>      <description>Attribute used for indexing or NULL</description>    </variable>    <variable name="cur_node">      <type>int</type>      <description>Current node</description>    </variable>    <variable name="nodes">      <type>mxml_node_t **</type>      <description>Node array</description>    </variable>    <variable name="num_nodes">      <type>int</type>      <description>Number of nodes in index</description>    </variable>  </struct>  <typedef name="mxml_index_t">    <type>struct mxml_index_s</type>    <description>An XML node index.</description>  </typedef>  <typedef name="mxml_load_cb_t">    <type>mxml_type_t(*)(mxml_node_t *)</type>    <description>Load callback function</description>  </typedef>  <struct name="mxml_node_s">    <description>An XML node.</description>    <variable name="child">      <type>struct mxml_node_s *</type>      <description>First child node</description>    </variable>    <variable name="last_child">      <type>struct mxml_node_s *</type>      <description>Last child node</description>    </variable>    <variable name="next">      <type>struct mxml_node_s *</type>      <description>Next node under same parent</description>    </variable>    <variable name="parent">      <type>struct mxml_node_s *</type>      <description>Parent node</description>    </variable>    <variable name="prev">      <type>struct mxml_node_s *</type>      <description>Previous node under same parent</description>    </variable>    <variable name="ref_count">      <type>int</type>      <description>Use count</description>    </variable>    <variable name="type">      <type>mxml_type_t</type>      <description>Node type</description>    </variable>    <variable name="user_data">      <type>void *</type>      <description>User data</description>    </variable>    <variable name="value">      <type>mxml_value_t</type>      <description>Node value</description>    </variable>  </struct>  <typedef name="mxml_node_t">    <type>struct mxml_node_s</type>    <description>An XML node.</description>  </typedef>  <typedef name="mxml_save_cb_t">    <type>const char *(*)(mxml_node_t *, int)</type>    <description>Save callback function</description>  </typedef>  <typedef name="mxml_sax_cb_t">    <type>void(*)(mxml_node_t *, mxml_sax_event_t, void *)</type>    <description>SAX callback function</description>  </typedef>  <enumeration name="mxml_sax_event_e">    <description>SAX event type.</description>    <constant name="MXML_SAX_CDATA">      <description>CDATA node</description>    </constant>    <constant name="MXML_SAX_COMMENT">      <description>Comment node</description>    </constant>    <constant name="MXML_SAX_DATA">      <description>Data node</description>    </constant>    <constant name="MXML_SAX_DIRECTIVE">      <description>Processing directive node</description>    </constant>    <constant name="MXML_SAX_ELEMENT_CLOSE">      <description>Element closed</description>    </constant>    <constant name="MXML_SAX_ELEMENT_OPEN">      <description>Element opened</description>    </constant>  </enumeration>  <typedef name="mxml_sax_event_t">    <type>enum mxml_sax_event_e</type>    <description>SAX event type.</description>  </typedef>  <struct name="mxml_text_s">    <description>An XML text value.</description>    <variable name="string">      <type>char *</type>      <description>Fragment string</description>    </variable>    <variable name="whitespace">      <type>int</type>      <description>Leading whitespace?</description>    </variable>  </struct>  <typedef name="mxml_text_t">    <type>struct mxml_text_s</type>    <description>An XML text value.</description>  </typedef>  <enumeration name="mxml_type_e">    <description>The XML node type.</description>    <constant name="MXML_CUSTOM">      <description>Custom data @since Mini-XML 2.1@</description>    </constant>    <constant name="MXML_ELEMENT">      <description>XML element with attributes</description>    </constant>    <constant name="MXML_IGNORE">      <description>Ignore/throw away node @since Mini-XML 2.3@</description>    </constant>    <constant name="MXML_INTEGER">      <description>Integer value</description>    </constant>    <constant name="MXML_OPAQUE">      <description>Opaque string</description>    </constant>    <constant name="MXML_REAL">      <description>Real value</description>    </constant>    <constant name="MXML_TEXT">      <description>Text fragment</description>    </constant>  </enumeration>  <typedef name="mxml_value_t">    <type>union mxml_value_u</type>    <description>An XML node value.</description>  </typedef>  <union name="mxml_value_u">    <description>An XML node value.</description>    <variable name="custom">      <type>mxml_custom_t</type>      <description>Custom data @since Mini-XML 2.1@</description>    </variable>    <variable name="element">      <type>mxml_element_t</type>      <description>Element</description>    </variable>    <variable name="integer">      <type>int</type>      <description>Integer number</description>    </variable>    <variable name="opaque">      <type>char *</type>      <description>Opaque string</description>    </variable>    <variable name="real">      <type>double</type>      <description>Real number</description>    </variable>    <variable name="text">      <type>mxml_text_t</type>      <description>Text fragment</description>    </variable>  </union></mxmldoc>

⌨️ 快捷键说明

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