亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? basics.html

?? minixml2.5最新的版本。 嵌入式xml 解析、查找、生成、遍歷 功能,全部實現是標準c,移植很容易。 最新的2.5
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<html><body><h1 align='right'><a name='BASICS'><img src="2.gif" align="right"hspace="10" width="100" height="100" alt="2"></a>Getting Startedwith Mini-XML</h1><p>This chapter describes how to write programs that use Mini-XML toaccess data in an XML file. Mini-XML provides the followingfunctionality:</p><ul>	<li>Functions for creating and managing XML documents	in memory.</li>	<li>Reading of UTF-8 and UTF-16 encoded XML files and	strings.</li>	<li>Writing of UTF-8 encoded XML files and strings.</li>	<li>Support for arbitrary element names, attributes, and	attribute values with no preset limits, just available	memory.</li>	<li>Support for integer, real, opaque ("cdata"), and text	data types in "leaf" nodes.</li>	<li>"Find", "index", and "walk" functions for easily	accessing data in an XML document.</li></ul><p>Mini-XML doesn't do validation or other types of processingon the data based upon schema files or other sources ofdefinition information, nor does it support character entitiesother than those required by the XML specification.</p><h2>The Basics</h2><p>Mini-XML provides a single header file which you include:</p><pre>    #include &lt;mxml.h&gt;</pre><p>The Mini-XML library is included with your program using the<kbd>-lmxml</kbd> option:</p><pre>    <kbd>gcc -o myprogram myprogram.c -lmxml ENTER</kbd></pre><p>If you have the <tt>pkg-config(1)</tt> software installed,you can use it to determine the proper compiler and linker optionsfor your installation:</p><pre>    <kbd>pkg-config --cflags mxml ENTER</kbd>    <kbd>pkg-config --libs mxml ENTER</kbd></pre><h2>Nodes</h2><p>Every piece of information in an XML file (elements, text,numbers) is stored in memory in "nodes". Nodes are defined bythe <ahref='#mxml_node_t'><tt>mxml_node_t</tt></a>structure. The <ahref='#mxml_type_t'><tt>type</tt></a> memberdefines the node type (element, integer, opaque, real, or text)which determines which value you want to look at in the <ahref='#mxml_value_t'><tt>value</tt></a> union.</p><!-- NEED 10 --><center><table width="80%" border="1" cellpadding="5" cellspacing="0" summary="Mini-XML Node Value Members"><caption align="bottom"><i>Table 2-1: Mini-XML Node Value Members</i></caption><tr bgcolor="#cccccc">	<th>Value</th>	<th>Type</th>	<th>Node member</th></tr><tr>	<td>Custom</td>	<td><tt>void *</tt></td>	<td><tt>node-&gt;value.custom.data</tt></td></tr><tr>	<td>Element</td>	<td><tt>char *</tt></td>	<td><tt>node-&gt;value.element.name</tt></td></tr><tr>	<td>Integer</td>	<td><tt>int</tt></td>	<td><tt>node-&gt;value.integer</tt></td></tr><tr>	<td>Opaque (string)</td>	<td><tt>char *</tt></td>	<td><tt>node-&gt;value.opaque</tt></td></tr><tr>	<td>Real</td>	<td><tt>double</tt></td>	<td><tt>node-&gt;value.real</tt></td></tr><tr>	<td>Text</td>	<td><tt>char *</tt></td>	<td><tt>node-&gt;value.text.string</tt></td></tr></table></center><p>Each node also has a <tt>user_data</tt> member which allows youto associate application-specific data with each node as needed.</p><p>New nodes are created using the <ahref='#mxmlNewElement'><tt>mxmlNewElement</tt></a>, <ahref='#mxmlNewInteger'><tt>mxmlNewInteger</tt></a>, <ahref='#mxmlNewOpaque'><tt>mxmlNewOpaque</tt></a>, <ahref='#mxmlNewReal'><tt>mxmlNewReal</tt></a>, <ahref='#mxmlNewText'><tt>mxmlNewText</tt></a> <ahref='#mxmlNewTextf'><tt>mxmlNewTextf</tt></a> <ahref='#mxmlNewXML'><tt>mxmlNewXML</tt></a> functions. Onlyelements can have child nodes, and the top node must be an element,usually the <tt>&lt;?xml version="1.0"?&gt;</tt> node created by<tt>mxmlNewXML()</tt>.</p><p>Nodes have pointers to the node above (<tt>parent</tt>), below(<tt>child</tt>), left (<tt>prev</tt>), and  right (<tt>next</tt>)of the current node. If you have an XML file like the following:</p><pre>    &lt;?xml version="1.0"?&gt;    &lt;data&gt;        &lt;node&gt;val1&lt;/node&gt;        &lt;node&gt;val2&lt;/node&gt;        &lt;node&gt;val3&lt;/node&gt;        &lt;group&gt;            &lt;node&gt;val4&lt;/node&gt;            &lt;node&gt;val5&lt;/node&gt;            &lt;node&gt;val6&lt;/node&gt;        &lt;/group&gt;        &lt;node&gt;val7&lt;/node&gt;        &lt;node&gt;val8&lt;/node&gt;    &lt;/data&gt;</pre><p>the node tree for the file would look like the following inmemory:</p><pre>    ?xml      |    data      |    node - node - node - group - node - node      |      |      |      |       |      |    val1   val2   val3     |     val7   val8                           |                         node - node - node                           |      |      |                         val4   val5   val6</pre><p>where "-" is a pointer to the next node and "|" is a pointerto the first child node.</p><p>Once you are done with the XML data, use the <ahref='#mxmlDelete'><tt>mxmlDelete</tt></a> function to recursivelyfree the memory that is used for a particular node or the entiretree:</p><pre>    mxmlDelete(tree);</pre><!-- NEW PAGE --><h2>Creating XML Documents</h2><p>You can create and update XML documents in memory using thevarious <tt>mxmlNew</tt> functions. The following code willcreate the XML document described in the previous section:</p><pre>    mxml_node_t *xml;    /* &lt;?xml ... ?&gt; */    mxml_node_t *data;   /* &lt;data&gt; */    mxml_node_t *node;   /* &lt;node&gt; */    mxml_node_t *group;  /* &lt;group&gt; */    xml = mxmlNewXML("1.0");    data = mxmlNewElement(xml, "data");        node = mxmlNewElement(data, "node");        mxmlNewText(node, 0, "val1");        node = mxmlNewElement(data, "node");        mxmlNewText(node, 0, "val2");        node = mxmlNewElement(data, "node");        mxmlNewText(node, 0, "val3");        group = mxmlNewElement(data, "group");            node = mxmlNewElement(group, "node");            mxmlNewText(node, 0, "val4");            node = mxmlNewElement(group, "node");            mxmlNewText(node, 0, "val5");            node = mxmlNewElement(group, "node");            mxmlNewText(node, 0, "val6");        node = mxmlNewElement(data, "node");        mxmlNewText(node, 0, "val7");        node = mxmlNewElement(data, "node");        mxmlNewText(node, 0, "val8");</pre><p>We start by creating the <tt>&lt;?xml version="1.0"?&gt;</tt>node common to all XML files using the <ahref="#mxmlNewXML"><tt>mxmlNewXML</tt></a> function:</p><pre>    xml = mxmlNewXML("1.0");</pre><p>We then create the <tt>&lt;data&gt;</tt> node used for thisdocument using the <ahref="#mxmlNewElement"><tt>mxmlNewElement</tt></a> function. Thefirst argument specifies the parent node (<tt>xml</tt>) while thesecond specifies the element name (<tt>data</tt>):</p><pre>    data = mxmlNewElement(xml, "data");</pre><p>Each <tt>&lt;node&gt;...&lt;/node&gt;</tt> in the file iscreated using the <tt>mxmlNewElement</tt> and <ahref="#mxmlNewText"><tt>mxmlNewText</tt></a> functions. The firstargument of <tt>mxmlNewText</tt> specifies the parent node(<tt>node</tt>). The second argument specifies whether whitespaceappears before the text - 0 or false in this case. The lastargument specifies the actual text to add:</p><pre>    node = mxmlNewElement(data, "node");    mxmlNewText(node, 0, "val1");</pre><p>The resulting in-memory XML document can then be saved orprocessed just like one loaded from disk or a string.</p><!-- NEW PAGE --><h2>Loading XML</h2><p>You load an XML file using the <ahref='#mxmlLoadFile'><tt>mxmlLoadFile</tt></a>function:</p><pre>    FILE *fp;    mxml_node_t *tree;    fp = fopen("filename.xml", "r");

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性生交片4| 国产综合久久久久久鬼色| 精品久久久久久最新网址| 91视频免费看| 91黄色激情网站| 91小视频免费观看| 日本久久一区二区| 在线观看欧美精品| 欧美精品第1页| 欧美写真视频网站| 91久久精品一区二区| 欧美男人的天堂一二区| 欧美日韩mp4| 日韩三级电影网址| 国产日韩精品久久久| 中文字幕欧美激情一区| 亚洲欧美电影院| 日韩成人免费看| 国产精品69毛片高清亚洲| 国产乱人伦精品一区二区在线观看 | 一本一道综合狠狠老| 欧美性欧美巨大黑白大战| 欧美日韩国产首页在线观看| 91精品国产综合久久精品麻豆 | 久久久久久久电影| 中文在线免费一区三区高中清不卡| 国产精品色一区二区三区| 亚洲精品伦理在线| 久久草av在线| 99久久久国产精品| 3d动漫精品啪啪| 中文字幕av一区 二区| 亚洲福利电影网| 国产精品正在播放| 欧洲精品中文字幕| 久久亚洲一区二区三区明星换脸 | 91网上在线视频| 3d成人h动漫网站入口| 中文字幕第一区综合| 偷拍自拍另类欧美| 成人av一区二区三区| 7777女厕盗摄久久久| 中文字幕欧美日韩一区| 五月激情综合色| 国产a视频精品免费观看| 欧美日本一区二区在线观看| 久久亚洲二区三区| 日韩电影一区二区三区| av一区二区三区在线| 日韩一区二区免费高清| 亚洲男人的天堂av| 国产麻豆一精品一av一免费| 欧美日韩亚洲不卡| 亚洲天堂免费在线观看视频| 国产一区二区三区在线观看精品 | 日韩欧美国产不卡| 一区二区三区高清| 国产成人在线视频网站| 欧美日韩一区国产| 亚洲欧洲成人自拍| 成人性生交大合| 精品国产乱码久久久久久图片| 亚洲国产欧美在线人成| 成人av网站免费| 久久久电影一区二区三区| 免播放器亚洲一区| 在线播放国产精品二区一二区四区| 日韩久久一区二区| 成年人国产精品| 国产精品久久久久久久裸模| 国产成人av一区二区三区在线 | 亚洲精品第一国产综合野| 韩国午夜理伦三级不卡影院| 日韩欧美国产高清| 久久99久久99| 久久综合久久久久88| 韩国女主播成人在线| 精品国内片67194| 国产一区二区毛片| 久久久久成人黄色影片| 国产成人免费视频网站| 国产精品毛片久久久久久久| 国产激情一区二区三区| 国产欧美精品日韩区二区麻豆天美| 国产精品亚洲人在线观看| 国产偷国产偷亚洲高清人白洁| 国产精品影视在线| 欧美国产一区视频在线观看| 成人精品国产免费网站| 亚洲人吸女人奶水| 欧美亚洲高清一区| 秋霞成人午夜伦在线观看| 亚洲精品在线网站| 94色蜜桃网一区二区三区| 亚洲图片欧美综合| 欧美一级淫片007| 国内一区二区在线| 亚洲天堂中文字幕| 欧美日韩国产欧美日美国产精品| 男女性色大片免费观看一区二区 | 亚洲精品v日韩精品| 欧美日韩成人激情| 国产成人精品免费在线| 亚洲色图.com| 精品剧情在线观看| av激情亚洲男人天堂| 日韩精品三区四区| 国产日产欧美精品一区二区三区| 色av成人天堂桃色av| 开心九九激情九九欧美日韩精美视频电影 | 亚洲成av人片观看| 国产校园另类小说区| 91成人免费在线视频| 激情五月播播久久久精品| 中文字幕日本乱码精品影院| 91麻豆精品91久久久久久清纯| 国产麻豆成人精品| 亚洲mv大片欧洲mv大片精品| 国产欧美日韩三级| 日韩一区二区在线看片| 成人少妇影院yyyy| 久久精品久久精品| 一区二区三区四区激情| 久久久国产综合精品女国产盗摄| 欧美三级韩国三级日本三斤 | 在线看不卡av| 成人午夜电影网站| 国产中文字幕精品| 性做久久久久久免费观看欧美| 久久精品水蜜桃av综合天堂| 欧美精选一区二区| 色哟哟在线观看一区二区三区| 国产一区二区三区综合| 美女尤物国产一区| 亚洲mv大片欧洲mv大片精品| 亚洲精品视频一区| 国产精品久久久久久亚洲伦 | 欧美日韩一区小说| 91美女在线视频| 99精品一区二区| 成人小视频在线| 国产成人夜色高潮福利影视| 国产一区在线观看视频| 美女国产一区二区三区| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲自拍与偷拍| 亚洲自拍偷拍综合| 亚洲乱码日产精品bd| 自拍偷拍国产亚洲| 亚洲三级电影网站| 亚洲欧美日韩系列| 亚洲精品视频一区| 亚洲一区在线观看免费观看电影高清| 亚洲日本青草视频在线怡红院 | 2021国产精品久久精品| 日韩一区二区在线免费观看| 欧美一区在线视频| 精品少妇一区二区三区视频免付费 | 奇米色777欧美一区二区| 日日骚欧美日韩| 看电视剧不卡顿的网站| 狠狠色丁香久久婷婷综| 国产美女在线观看一区| 国产成人亚洲综合色影视| 成人激情免费视频| 一本色道久久综合亚洲91| 色婷婷精品大在线视频| 欧美日韩精品一区二区三区| 5566中文字幕一区二区电影| 91精品久久久久久久久99蜜臂| 日韩三级在线免费观看| 久久影院视频免费| 最新日韩在线视频| 亚洲妇熟xx妇色黄| 精品一区二区免费看| 国产成人综合在线| 在线一区二区三区| 欧美一级高清大全免费观看| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美激情中文字幕一区二区| 亚洲视频中文字幕| 日本aⅴ精品一区二区三区| 国产一区二区三区不卡在线观看| 国产成人精品免费在线| 在线一区二区三区四区五区| 日韩一级精品视频在线观看| 国产欧美日韩三级| 午夜欧美大尺度福利影院在线看| 国产一区视频在线看| 91国产精品成人| 国产日产欧产精品推荐色 | 中文字幕免费观看一区| 亚洲一区视频在线观看视频| 精品中文字幕一区二区| 欧美中文字幕一区二区三区亚洲| 久久综合五月天婷婷伊人| 亚洲一区二区偷拍精品| 国产精选一区二区三区| 欧美日韩久久久久久| 亚洲视频精选在线|