📄 mxml.xml
字号:
<argument name="cb" direction="I"> <type>mxml_load_cb_t</type> <description>Callback function or MXML_NO_CALLBACK</description> </argument> </function> <function name="mxmlLoadString"> <returnvalue> <type>mxml_node_t *</type> <description>First node or NULL if the string has errors.</description> </returnvalue> <description>Load a string into an XML node tree.The nodes in the specified string are added to the specified top node.If no top node is provided, the XML string MUST be well-formed with asingle parent node like <?xml> for the entire string. 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="s" direction="I"> <type>const char *</type> <description>String to load</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="mxmlNewCDATA"> <returnvalue> <type>mxml_node_t *</type> <description>New node</description> </returnvalue> <description>Create a new CDATA node.The new CDATA node is added to the end of the specified parent's childlist. The constant MXML_NO_PARENT can be used to specify that the newCDATA node has no parent. The data string must be nul-terminated andis copied into the new node. CDATA nodes use the MXML_ELEMENT type.@since Mini-XML 2.3@</description> <argument name="parent" direction="I"> <type>mxml_node_t *</type> <description>Parent node or MXML_NO_PARENT</description> </argument> <argument name="data" direction="I"> <type>const char *</type> <description>Data string</description> </argument> </function> <function name="mxmlNewCustom"> <returnvalue> <type>mxml_node_t *</type> <description>New node</description> </returnvalue> <description>Create a new custom data node.The new custom node is added to the end of the specified parent's childlist. The constant MXML_NO_PARENT can be used to specify that the newelement node has no parent. NULL can be passed when the data in thenode is not dynamically allocated or is separately managed.@since Mini-XML 2.1@</description> <argument name="parent" direction="I"> <type>mxml_node_t *</type> <description>Parent node or MXML_NO_PARENT</description> </argument> <argument name="data" direction="I"> <type>void *</type> <description>Pointer to data</description> </argument> <argument name="destroy" direction="I"> <type>mxml_custom_destroy_cb_t</type> <description>Function to destroy data</description> </argument> </function> <function name="mxmlNewElement"> <returnvalue> <type>mxml_node_t *</type> <description>New node</description> </returnvalue> <description>Create a new element node.The new element node is added to the end of the specified parent's childlist. The constant MXML_NO_PARENT can be used to specify that the newelement node has no parent.</description> <argument name="parent" direction="I"> <type>mxml_node_t *</type> <description>Parent node or MXML_NO_PARENT</description> </argument> <argument name="name" direction="I"> <type>const char *</type> <description>Name of element</description> </argument> </function> <function name="mxmlNewInteger"> <returnvalue> <type>mxml_node_t *</type> <description>New node</description> </returnvalue> <description>Create a new integer node.The new integer node is added to the end of the specified parent's childlist. The constant MXML_NO_PARENT can be used to specify that the newinteger node has no parent.</description> <argument name="parent" direction="I"> <type>mxml_node_t *</type> <description>Parent node or MXML_NO_PARENT</description> </argument> <argument name="integer" direction="I"> <type>int</type> <description>Integer value</description> </argument> </function> <function name="mxmlNewOpaque"> <returnvalue> <type>mxml_node_t *</type> <description>New node</description> </returnvalue> <description>Create a new opaque string.The new opaque node is added to the end of the specified parent's childlist. The constant MXML_NO_PARENT can be used to specify that the newopaque node has no parent. The opaque string must be nul-terminated andis copied into the new node.</description> <argument name="parent" direction="I"> <type>mxml_node_t *</type> <description>Parent node or MXML_NO_PARENT</description> </argument> <argument name="opaque" direction="I"> <type>const char *</type> <description>Opaque string</description> </argument> </function> <function name="mxmlNewReal"> <returnvalue> <type>mxml_node_t *</type> <description>New node</description> </returnvalue> <description>Create a new real number node.The new real number node is added to the end of the specified parent'schild list. The constant MXML_NO_PARENT can be used to specify thatthe new real number node has no parent.</description> <argument name="parent" direction="I"> <type>mxml_node_t *</type> <description>Parent node or MXML_NO_PARENT</description> </argument> <argument name="real" direction="I"> <type>double</type> <description>Real number value</description> </argument> </function> <function name="mxmlNewText"> <returnvalue> <type>mxml_node_t *</type> <description>New node</description> </returnvalue> <description>Create a new text fragment node.The new text node is added to the end of the specified parent's childlist. The constant MXML_NO_PARENT can be used to specify that the newtext node has no parent. The whitespace parameter is used to specifywhether leading whitespace is present before the node. The textstring must be nul-terminated and is copied into the new node.</description> <argument name="parent" direction="I"> <type>mxml_node_t *</type> <description>Parent node or MXML_NO_PARENT</description> </argument> <argument name="whitespace" direction="I"> <type>int</type> <description>1 = leading whitespace, 0 = no whitespace</description> </argument> <argument name="string" direction="I"> <type>const char *</type> <description>String</description> </argument> </function> <function name="mxmlNewTextf"> <returnvalue> <type>mxml_node_t *</type> <description>New node</description> </returnvalue> <description>Create a new formatted text fragment node.The new text node is added to the end of the specified parent's childlist. The constant MXML_NO_PARENT can be used to specify that the newtext node has no parent. The whitespace parameter is used to specifywhether leading whitespace is present before the node. The formatstring must be nul-terminated and is formatted into the new node.</description> <argument name="parent" direction="I"> <type>mxml_node_t *</type> <description>Parent node or MXML_NO_PARENT</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 frmat string</description> </argument> <argument name="..." direction="I"> <type /> <description>Additional args as needed</description> </argument> </function> <function name="mxmlNewXML"> <returnvalue> <type>mxml_node_t *</type> <description>New ?xml node</description> </returnvalue> <description>Create a new XML document tree.The "version" argument specifies the version number to put in the?xml element node. If NULL, version 1.0 is assumed.@since Mini-XML 2.3@</description> <argument name="version" direction="I"> <type>const char *</type> <description>Version number to use</description> </argument> </function> <function name="mxmlRelease"> <returnvalue> <type>int</type> <description>New reference count</description> </returnvalue> <description>Release a node.When the reference count reaches zero, the node (and any children)is deleted via mxmlDelete().@since Mini-XML 2.3@</description> <argument name="node" direction="I"> <type>mxml_node_t *</type> <description>Node</description> </argument> </function> <function name="mxmlRemove"> <description>Remove a node from its parent.Does not free memory used by the node - use mxmlDelete() for that.This function does nothing if the node has no parent.</description> <argument name="node" direction="I"> <type>mxml_node_t *</type> <description>Node to remove</description> </argument> </function> <function name="mxmlRetain"> <returnvalue> <type>int</type> <description>New reference count</description> </returnvalue> <description>Retain a node.@since Mini-XML 2.3@</description> <argument name="node" direction="I"> <type>mxml_node_t *</type> <description>Node</description> </argument> </function> <function name="mxmlSAXLoadFd"> <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 treeusing a SAX callback.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 <?xml> 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.The SAX callback must call mxmlRetain() for any nodes that need tobe kept for later use. Otherwise, nodes are deleted when the parentnode is closed or after each data, comment, CDATA, or directive node.@since Mini-XML 2.3@</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> <argument name="sax_cb" direction="I"> <type>mxml_sax_cb_t</type> <description>SAX callback or MXML_NO_CALLBACK</description> </argument> <argument name="sax_data" direction="I"> <type>void *</type> <description>SAX user data</description> </argument> </function> <function name="mxmlSAXLoadFile"> <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 treeusing a SAX callback.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 <?xml> 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.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -