8
8
<link rel="up" href="ch03.html" title="libexchange public API reference">
9
9
<link rel="prev" href="evolution-exchange-e2k-utils.html" title="e2k-utils">
10
10
<link rel="next" href="evolution-exchange-MAPI.html" title="MAPI">
11
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
37
37
</tr></table></div>
38
38
<div class="refsynopsisdiv">
39
39
<a name="evolution-exchange-e2k-xml-utils.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis"><span class="returnvalue">xmlDoc</span> * <a class="link" href="evolution-exchange-e2k-xml-utils.html#e2k-parse-xml" title="e2k_parse_xml ()">e2k_parse_xml</a> (<em class="parameter"><code>const <span class="type">gchar</span> *buf</code></em>,
41
<em class="parameter"><code><span class="type">gint</span> len</code></em>);
42
<span class="returnvalue">xmlDoc</span> * <a class="link" href="evolution-exchange-e2k-xml-utils.html#e2k-parse-html" title="e2k_parse_html ()">e2k_parse_html</a> (<em class="parameter"><code>const <span class="type">gchar</span> *buf</code></em>,
43
<em class="parameter"><code><span class="type">gint</span> len</code></em>);
40
<pre class="synopsis"><span class="returnvalue">xmlDoc</span> * <a class="link" href="evolution-exchange-e2k-xml-utils.html#e2k-parse-xml" title="e2k_parse_xml ()">e2k_parse_xml</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buf</code></em>,
41
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);
42
<span class="returnvalue">xmlDoc</span> * <a class="link" href="evolution-exchange-e2k-xml-utils.html#e2k-parse-html" title="e2k_parse_html ()">e2k_parse_html</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buf</code></em>,
43
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);
44
44
#define <a class="link" href="evolution-exchange-e2k-xml-utils.html#E2K-IS-NODE:CAPS" title="E2K_IS_NODE()">E2K_IS_NODE</a> (node,
48
48
#define <a class="link" href="evolution-exchange-e2k-xml-utils.html#E2K-XML-HEADER:CAPS" title="E2K_XML_HEADER">E2K_XML_HEADER</a>
49
<span class="returnvalue">void</span> <a class="link" href="evolution-exchange-e2k-xml-utils.html#e2k-g-string-append-xml-escaped" title="e2k_g_string_append_xml_escaped ()">e2k_g_string_append_xml_escaped</a> (<em class="parameter"><code><span class="type">GString</span> *string</code></em>,
50
<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>);
49
<span class="returnvalue">void</span> <a class="link" href="evolution-exchange-e2k-xml-utils.html#e2k-g-string-append-xml-escaped" title="e2k_g_string_append_xml_escaped ()">e2k_g_string_append_xml_escaped</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Strings.html#GString"><span class="type">GString</span></a> *string</code></em>,
50
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);
52
52
<span class="returnvalue">xmlNode</span> * <a class="link" href="evolution-exchange-e2k-xml-utils.html#e2k-xml-find" title="e2k_xml_find ()">e2k_xml_find</a> (<em class="parameter"><code><span class="type">xmlNode</span> *node</code></em>,
53
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);
53
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
54
54
<span class="returnvalue">xmlNode</span> * <a class="link" href="evolution-exchange-e2k-xml-utils.html#e2k-xml-find-in" title="e2k_xml_find_in ()">e2k_xml_find_in</a> (<em class="parameter"><code><span class="type">xmlNode</span> *node</code></em>,
55
55
<em class="parameter"><code><span class="type">xmlNode</span> *top</code></em>,
56
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);
56
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
59
59
<div class="refsect1">
65
65
<a name="evolution-exchange-e2k-xml-utils.details"></a><h2>Details</h2>
66
66
<div class="refsect2">
67
67
<a name="e2k-parse-xml"></a><h3>e2k_parse_xml ()</h3>
68
<pre class="programlisting"><span class="returnvalue">xmlDoc</span> * e2k_parse_xml (<em class="parameter"><code>const <span class="type">gchar</span> *buf</code></em>,
69
<em class="parameter"><code><span class="type">gint</span> len</code></em>);</pre>
68
<pre class="programlisting"><span class="returnvalue">xmlDoc</span> * e2k_parse_xml (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buf</code></em>,
69
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);</pre>
71
71
Parses the XML document in <em class="parameter"><code>buf</code></em>.
93
93
<div class="refsect2">
94
94
<a name="e2k-parse-html"></a><h3>e2k_parse_html ()</h3>
95
<pre class="programlisting"><span class="returnvalue">xmlDoc</span> * e2k_parse_html (<em class="parameter"><code>const <span class="type">gchar</span> *buf</code></em>,
96
<em class="parameter"><code><span class="type">gint</span> len</code></em>);</pre>
95
<pre class="programlisting"><span class="returnvalue">xmlDoc</span> * e2k_parse_html (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buf</code></em>,
96
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);</pre>
98
98
Parses the HTML document in <em class="parameter"><code>buf</code></em>.
135
135
<div class="refsect2">
136
136
<a name="e2k-g-string-append-xml-escaped"></a><h3>e2k_g_string_append_xml_escaped ()</h3>
137
<pre class="programlisting"><span class="returnvalue">void</span> e2k_g_string_append_xml_escaped (<em class="parameter"><code><span class="type">GString</span> *string</code></em>,
138
<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>);</pre>
137
<pre class="programlisting"><span class="returnvalue">void</span> e2k_g_string_append_xml_escaped (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Strings.html#GString"><span class="type">GString</span></a> *string</code></em>,
138
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
140
140
Appends <em class="parameter"><code>value</code></em> to <em class="parameter"><code>string</code></em>, escaping any characters that can't appear
141
141
unencoded in XML text (eg, "<").
147
147
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
148
<td>a <code class="literal">GString</code> containing XML data</td>
148
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Strings.html#GString"><code class="literal">GString</code></a> containing XML data</td>
151
151
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
159
159
<div class="refsect2">
160
160
<a name="e2k-xml-find"></a><h3>e2k_xml_find ()</h3>
161
161
<pre class="programlisting"><span class="returnvalue">xmlNode</span> * e2k_xml_find (<em class="parameter"><code><span class="type">xmlNode</span> *node</code></em>,
162
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);</pre>
162
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
164
164
Starts or continues a pre-order depth-first search of an xml
165
165
document for an element named <em class="parameter"><code>name</code></em>. <em class="parameter"><code>node</code></em> is used as the starting
185
185
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
186
<td>the first matching element after <em class="parameter"><code>node</code></em>, or <a href="/home/chen/opt34/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> when
186
<td>the first matching element after <em class="parameter"><code>node</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> when
187
187
there are no more matches.</td>
194
194
<a name="e2k-xml-find-in"></a><h3>e2k_xml_find_in ()</h3>
195
195
<pre class="programlisting"><span class="returnvalue">xmlNode</span> * e2k_xml_find_in (<em class="parameter"><code><span class="type">xmlNode</span> *node</code></em>,
196
196
<em class="parameter"><code><span class="type">xmlNode</span> *top</code></em>,
197
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);</pre>
197
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
199
199
Starts or continues a pre-order depth-first search of a subset of
200
200
an xml document for an element named <em class="parameter"><code>name</code></em>. <em class="parameter"><code>node</code></em> is used as the
226
226
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
227
<td>the first matching element after <em class="parameter"><code>node</code></em>, or <a href="/home/chen/opt34/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> when
227
<td>the first matching element after <em class="parameter"><code>node</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> when
228
228
there are no more matches.</td>