1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>libxml++: xmlpp::Parser Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.4.4 -->
7
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
9
<a class="el" href="namespacexmlpp.html">xmlpp</a>::<a class="el" href="classxmlpp_1_1Parser.html">Parser</a></div>
10
<h1>xmlpp::Parser Class Reference</h1><!-- doxytag: class="xmlpp::Parser" --><!-- doxytag: inherits="xmlpp::NonCopyable" -->XML parser.
11
<a href="#_details">More...</a>
13
Inheritance diagram for xmlpp::Parser:<p><center><img src="classxmlpp_1_1Parser__inherit__graph.jpg" border="0" usemap="#xmlpp_1_1Parser__inherit__map" alt="Inheritance graph"></center>
14
<map name="xmlpp_1_1Parser__inherit__map">
15
<area href="classxmlpp_1_1DomParser.html" shape="rect" coords="7,157,141,184" alt="">
16
<area href="classxmlpp_1_1SaxParser.html" shape="rect" coords="165,157,293,184" alt="">
17
<area href="classxmlpp_1_1NonCopyable.html" shape="rect" coords="78,8,225,34" alt="">
19
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classxmlpp_1_1Parser-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
21
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
22
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#w0">size_type</a></td></tr>
24
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
25
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#a0">Parser</a> ()</td></tr>
27
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#a1">~Parser</a> ()</td></tr>
29
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#a2">set_validate</a> (<a class="el" href="classbool.html">bool</a> val=true)</td></tr>
31
<tr><td class="mdescLeft"> </td><td class="mdescRight">By default, the parser will not validate the XML file. <a href="#a2"></a><br></td></tr>
32
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classbool.html">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#a3">get_validate</a> () const </td></tr>
34
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="classxmlpp_1_1Parser.html#a2">set_validate()</a>. <a href="#a3"></a><br></td></tr>
35
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#a4">set_substitute_entities</a> (<a class="el" href="classbool.html">bool</a> val=true)</td></tr>
37
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set whether the parser will automatically substitute entity references with the text of the entities' definitions. <a href="#a4"></a><br></td></tr>
38
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classbool.html">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#a5">get_substitute_entities</a> () const </td></tr>
40
<tr><td class="mdescLeft"> </td><td class="mdescRight">See <a class="el" href="classxmlpp_1_1Parser.html#a4">set_substitute_entities()</a>. <a href="#a5"></a><br></td></tr>
41
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#a6">parse_file</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &filename)=0</td></tr>
43
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parse an XML document from a file. <a href="#a6"></a><br></td></tr>
44
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#a7">parse_memory</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &contents)=0</td></tr>
46
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parse an XML document from a string. <a href="#a7"></a><br></td></tr>
47
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#a8">parse_stream</a> (<a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1basic__istream.html">std::istream</a> &in)=0</td></tr>
49
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parse an XML document from a stream. <a href="#a8"></a><br></td></tr>
50
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#b0">initialize_context</a> ()</td></tr>
53
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#b1">release_underlying</a> ()</td></tr>
55
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#b2">on_validity_error</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &message)</td></tr>
57
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#b3">on_validity_warning</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &message)</td></tr>
59
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#b4">handleException</a> (const <a class="el" href="classxmlpp_1_1exception.html">exception</a> &e)</td></tr>
61
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#b5">check_for_exception</a> ()</td></tr>
63
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#b6">check_for_validity_messages</a> ()</td></tr>
65
<tr><td colspan="2"><br><h2>Static Protected Member Functions</h2></td></tr>
66
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#f0">callback_validity_error</a> (void *ctx, const char *msg,...)</td></tr>
68
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#f1">callback_validity_warning</a> (void *ctx, const char *msg,...)</td></tr>
70
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
71
<tr><td class="memItemLeft" nowrap align="right" valign="top">_xmlParserCtxt * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#p0">context_</a></td></tr>
73
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classxmlpp_1_1exception.html">exception</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#p1">exception_</a></td></tr>
75
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#p2">validate_error_</a></td></tr>
77
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#p3">validate_warning_</a></td></tr>
79
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classbool.html">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#p4">validate_</a></td></tr>
81
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classbool.html">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Parser.html#p5">substitute_entities_</a></td></tr>
84
<hr><a name="_details"></a><h2>Detailed Description</h2>
87
<hr><h2>Member Typedef Documentation</h2>
88
<a class="anchor" name="w0"></a><!-- doxytag: member="xmlpp::Parser::size_type" ref="w0" args="" --><p>
89
<table class="mdTable" cellpadding="2" cellspacing="0">
92
<table cellpadding="0" cellspacing="0" border="0">
94
<td class="md" nowrap valign="top">typedef unsigned int <a class="el" href="classxmlpp_1_1Parser.html#w0">xmlpp::Parser::size_type</a> </td>
100
<table cellspacing="5" cellpadding="0" border="0">
111
<hr><h2>Constructor & Destructor Documentation</h2>
112
<a class="anchor" name="a0"></a><!-- doxytag: member="xmlpp::Parser::Parser" ref="a0" args="()" --><p>
113
<table class="mdTable" cellpadding="2" cellspacing="0">
116
<table cellpadding="0" cellspacing="0" border="0">
118
<td class="md" nowrap valign="top">xmlpp::Parser::Parser </td>
119
<td class="md" valign="top">( </td>
120
<td class="mdname1" valign="top" nowrap> </td>
121
<td class="md" valign="top"> ) </td>
122
<td class="md" nowrap></td>
128
<table cellspacing="5" cellpadding="0" border="0">
139
<a class="anchor" name="a1"></a><!-- doxytag: member="xmlpp::Parser::~Parser" ref="a1" args="()" --><p>
140
<table class="mdTable" cellpadding="2" cellspacing="0">
143
<table cellpadding="0" cellspacing="0" border="0">
145
<td class="md" nowrap valign="top">virtual xmlpp::Parser::~Parser </td>
146
<td class="md" valign="top">( </td>
147
<td class="mdname1" valign="top" nowrap> </td>
148
<td class="md" valign="top"> ) </td>
149
<td class="md" nowrap><code> [virtual]</code></td>
155
<table cellspacing="5" cellpadding="0" border="0">
166
<hr><h2>Member Function Documentation</h2>
167
<a class="anchor" name="f0"></a><!-- doxytag: member="xmlpp::Parser::callback_validity_error" ref="f0" args="(void *ctx, const char *msg,...)" --><p>
168
<table class="mdTable" cellpadding="2" cellspacing="0">
171
<table cellpadding="0" cellspacing="0" border="0">
173
<td class="md" nowrap valign="top">static void xmlpp::Parser::callback_validity_error </td>
174
<td class="md" valign="top">( </td>
175
<td class="md" nowrap valign="top">void * </td>
176
<td class="mdname" nowrap> <em>ctx</em>, </td>
179
<td class="md" nowrap align="right"></td>
181
<td class="md" nowrap>const char * </td>
182
<td class="mdname" nowrap> <em>msg</em>, </td>
185
<td class="md" nowrap align="right"></td>
187
<td class="md" nowrap> </td>
188
<td class="mdname" nowrap> <em>...</em></td>
192
<td class="md">) </td>
193
<td class="md" colspan="2"><code> [static, protected]</code></td>
199
<table cellspacing="5" cellpadding="0" border="0">
210
<a class="anchor" name="f1"></a><!-- doxytag: member="xmlpp::Parser::callback_validity_warning" ref="f1" args="(void *ctx, const char *msg,...)" --><p>
211
<table class="mdTable" cellpadding="2" cellspacing="0">
214
<table cellpadding="0" cellspacing="0" border="0">
216
<td class="md" nowrap valign="top">static void xmlpp::Parser::callback_validity_warning </td>
217
<td class="md" valign="top">( </td>
218
<td class="md" nowrap valign="top">void * </td>
219
<td class="mdname" nowrap> <em>ctx</em>, </td>
222
<td class="md" nowrap align="right"></td>
224
<td class="md" nowrap>const char * </td>
225
<td class="mdname" nowrap> <em>msg</em>, </td>
228
<td class="md" nowrap align="right"></td>
230
<td class="md" nowrap> </td>
231
<td class="mdname" nowrap> <em>...</em></td>
235
<td class="md">) </td>
236
<td class="md" colspan="2"><code> [static, protected]</code></td>
242
<table cellspacing="5" cellpadding="0" border="0">
253
<a class="anchor" name="b5"></a><!-- doxytag: member="xmlpp::Parser::check_for_exception" ref="b5" args="()" --><p>
254
<table class="mdTable" cellpadding="2" cellspacing="0">
257
<table cellpadding="0" cellspacing="0" border="0">
259
<td class="md" nowrap valign="top">virtual void xmlpp::Parser::check_for_exception </td>
260
<td class="md" valign="top">( </td>
261
<td class="mdname1" valign="top" nowrap> </td>
262
<td class="md" valign="top"> ) </td>
263
<td class="md" nowrap><code> [protected, virtual]</code></td>
269
<table cellspacing="5" cellpadding="0" border="0">
280
<a class="anchor" name="b6"></a><!-- doxytag: member="xmlpp::Parser::check_for_validity_messages" ref="b6" args="()" --><p>
281
<table class="mdTable" cellpadding="2" cellspacing="0">
284
<table cellpadding="0" cellspacing="0" border="0">
286
<td class="md" nowrap valign="top">virtual void xmlpp::Parser::check_for_validity_messages </td>
287
<td class="md" valign="top">( </td>
288
<td class="mdname1" valign="top" nowrap> </td>
289
<td class="md" valign="top"> ) </td>
290
<td class="md" nowrap><code> [protected, virtual]</code></td>
296
<table cellspacing="5" cellpadding="0" border="0">
307
<a class="anchor" name="a5"></a><!-- doxytag: member="xmlpp::Parser::get_substitute_entities" ref="a5" args="() const " --><p>
308
<table class="mdTable" cellpadding="2" cellspacing="0">
311
<table cellpadding="0" cellspacing="0" border="0">
313
<td class="md" nowrap valign="top">virtual <a class="el" href="classbool.html">bool</a> xmlpp::Parser::get_substitute_entities </td>
314
<td class="md" valign="top">( </td>
315
<td class="mdname1" valign="top" nowrap> </td>
316
<td class="md" valign="top"> ) </td>
317
<td class="md" nowrap> const<code> [virtual]</code></td>
323
<table cellspacing="5" cellpadding="0" border="0">
331
See <a class="el" href="classxmlpp_1_1Parser.html#a4">set_substitute_entities()</a>.
333
<dl compact><dt><b>Returns:</b></dt><dd>Whether entities will be substituted during parsing.</dd></dl>
337
<a class="anchor" name="a3"></a><!-- doxytag: member="xmlpp::Parser::get_validate" ref="a3" args="() const " --><p>
338
<table class="mdTable" cellpadding="2" cellspacing="0">
341
<table cellpadding="0" cellspacing="0" border="0">
343
<td class="md" nowrap valign="top">virtual <a class="el" href="classbool.html">bool</a> xmlpp::Parser::get_validate </td>
344
<td class="md" valign="top">( </td>
345
<td class="mdname1" valign="top" nowrap> </td>
346
<td class="md" valign="top"> ) </td>
347
<td class="md" nowrap> const<code> [virtual]</code></td>
353
<table cellspacing="5" cellpadding="0" border="0">
361
See <a class="el" href="classxmlpp_1_1Parser.html#a2">set_validate()</a>.
363
<dl compact><dt><b>Returns:</b></dt><dd>Whether the parser will validate the XML file.</dd></dl>
367
<a class="anchor" name="b4"></a><!-- doxytag: member="xmlpp::Parser::handleException" ref="b4" args="(const exception &e)" --><p>
368
<table class="mdTable" cellpadding="2" cellspacing="0">
371
<table cellpadding="0" cellspacing="0" border="0">
373
<td class="md" nowrap valign="top">virtual void xmlpp::Parser::handleException </td>
374
<td class="md" valign="top">( </td>
375
<td class="md" nowrap valign="top">const <a class="el" href="classxmlpp_1_1exception.html">exception</a> & </td>
376
<td class="mdname1" valign="top" nowrap> <em>e</em> </td>
377
<td class="md" valign="top"> ) </td>
378
<td class="md" nowrap><code> [protected, virtual]</code></td>
384
<table cellspacing="5" cellpadding="0" border="0">
395
<a class="anchor" name="b0"></a><!-- doxytag: member="xmlpp::Parser::initialize_context" ref="b0" args="()" --><p>
396
<table class="mdTable" cellpadding="2" cellspacing="0">
399
<table cellpadding="0" cellspacing="0" border="0">
401
<td class="md" nowrap valign="top">virtual void xmlpp::Parser::initialize_context </td>
402
<td class="md" valign="top">( </td>
403
<td class="mdname1" valign="top" nowrap> </td>
404
<td class="md" valign="top"> ) </td>
405
<td class="md" nowrap><code> [protected, virtual]</code></td>
411
<table cellspacing="5" cellpadding="0" border="0">
422
<a class="anchor" name="b2"></a><!-- doxytag: member="xmlpp::Parser::on_validity_error" ref="b2" args="(const Glib::ustring &message)" --><p>
423
<table class="mdTable" cellpadding="2" cellspacing="0">
426
<table cellpadding="0" cellspacing="0" border="0">
428
<td class="md" nowrap valign="top">virtual void xmlpp::Parser::on_validity_error </td>
429
<td class="md" valign="top">( </td>
430
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
431
<td class="mdname1" valign="top" nowrap> <em>message</em> </td>
432
<td class="md" valign="top"> ) </td>
433
<td class="md" nowrap><code> [protected, virtual]</code></td>
439
<table cellspacing="5" cellpadding="0" border="0">
450
<a class="anchor" name="b3"></a><!-- doxytag: member="xmlpp::Parser::on_validity_warning" ref="b3" args="(const Glib::ustring &message)" --><p>
451
<table class="mdTable" cellpadding="2" cellspacing="0">
454
<table cellpadding="0" cellspacing="0" border="0">
456
<td class="md" nowrap valign="top">virtual void xmlpp::Parser::on_validity_warning </td>
457
<td class="md" valign="top">( </td>
458
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
459
<td class="mdname1" valign="top" nowrap> <em>message</em> </td>
460
<td class="md" valign="top"> ) </td>
461
<td class="md" nowrap><code> [protected, virtual]</code></td>
467
<table cellspacing="5" cellpadding="0" border="0">
478
<a class="anchor" name="a6"></a><!-- doxytag: member="xmlpp::Parser::parse_file" ref="a6" args="(const Glib::ustring &filename)=0" --><p>
479
<table class="mdTable" cellpadding="2" cellspacing="0">
482
<table cellpadding="0" cellspacing="0" border="0">
484
<td class="md" nowrap valign="top">virtual void xmlpp::Parser::parse_file </td>
485
<td class="md" valign="top">( </td>
486
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
487
<td class="mdname1" valign="top" nowrap> <em>filename</em> </td>
488
<td class="md" valign="top"> ) </td>
489
<td class="md" nowrap><code> [pure virtual]</code></td>
495
<table cellspacing="5" cellpadding="0" border="0">
503
Parse an XML document from a file.
505
<dl compact><dt><b>Exceptions:</b></dt><dd>
506
<table border="0" cellspacing="2" cellpadding="0">
507
<tr><td valign="top"></td><td valign="top"><em>exception</em> </td><td></td></tr>
510
<dl compact><dt><b>Parameters:</b></dt><dd>
511
<table border="0" cellspacing="2" cellpadding="0">
512
<tr><td valign="top"></td><td valign="top"><em>filename</em> </td><td>The path to the file.</td></tr>
517
Implemented in <a class="el" href="classxmlpp_1_1DomParser.html#a3">xmlpp::DomParser</a>, and <a class="el" href="classxmlpp_1_1SaxParser.html#a2">xmlpp::SaxParser</a>. </td>
520
<a class="anchor" name="a7"></a><!-- doxytag: member="xmlpp::Parser::parse_memory" ref="a7" args="(const Glib::ustring &contents)=0" --><p>
521
<table class="mdTable" cellpadding="2" cellspacing="0">
524
<table cellpadding="0" cellspacing="0" border="0">
526
<td class="md" nowrap valign="top">virtual void xmlpp::Parser::parse_memory </td>
527
<td class="md" valign="top">( </td>
528
<td class="md" nowrap valign="top">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
529
<td class="mdname1" valign="top" nowrap> <em>contents</em> </td>
530
<td class="md" valign="top"> ) </td>
531
<td class="md" nowrap><code> [pure virtual]</code></td>
537
<table cellspacing="5" cellpadding="0" border="0">
545
Parse an XML document from a string.
547
<dl compact><dt><b>Exceptions:</b></dt><dd>
548
<table border="0" cellspacing="2" cellpadding="0">
549
<tr><td valign="top"></td><td valign="top"><em>exception</em> </td><td></td></tr>
552
<dl compact><dt><b>Parameters:</b></dt><dd>
553
<table border="0" cellspacing="2" cellpadding="0">
554
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>The XML document as a string.</td></tr>
559
Implemented in <a class="el" href="classxmlpp_1_1DomParser.html#a4">xmlpp::DomParser</a>, and <a class="el" href="classxmlpp_1_1SaxParser.html#a3">xmlpp::SaxParser</a>. </td>
562
<a class="anchor" name="a8"></a><!-- doxytag: member="xmlpp::Parser::parse_stream" ref="a8" args="(std::istream &in)=0" --><p>
563
<table class="mdTable" cellpadding="2" cellspacing="0">
566
<table cellpadding="0" cellspacing="0" border="0">
568
<td class="md" nowrap valign="top">virtual void xmlpp::Parser::parse_stream </td>
569
<td class="md" valign="top">( </td>
570
<td class="md" nowrap valign="top"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1basic__istream.html">std::istream</a> & </td>
571
<td class="mdname1" valign="top" nowrap> <em>in</em> </td>
572
<td class="md" valign="top"> ) </td>
573
<td class="md" nowrap><code> [pure virtual]</code></td>
579
<table cellspacing="5" cellpadding="0" border="0">
587
Parse an XML document from a stream.
589
<dl compact><dt><b>Exceptions:</b></dt><dd>
590
<table border="0" cellspacing="2" cellpadding="0">
591
<tr><td valign="top"></td><td valign="top"><em>exception</em> </td><td></td></tr>
594
<dl compact><dt><b>Parameters:</b></dt><dd>
595
<table border="0" cellspacing="2" cellpadding="0">
596
<tr><td valign="top"></td><td valign="top"><em>in</em> </td><td>The stream.</td></tr>
601
Implemented in <a class="el" href="classxmlpp_1_1DomParser.html#a6">xmlpp::DomParser</a>, and <a class="el" href="classxmlpp_1_1SaxParser.html#a5">xmlpp::SaxParser</a>. </td>
604
<a class="anchor" name="b1"></a><!-- doxytag: member="xmlpp::Parser::release_underlying" ref="b1" args="()" --><p>
605
<table class="mdTable" cellpadding="2" cellspacing="0">
608
<table cellpadding="0" cellspacing="0" border="0">
610
<td class="md" nowrap valign="top">virtual void xmlpp::Parser::release_underlying </td>
611
<td class="md" valign="top">( </td>
612
<td class="mdname1" valign="top" nowrap> </td>
613
<td class="md" valign="top"> ) </td>
614
<td class="md" nowrap><code> [protected, virtual]</code></td>
620
<table cellspacing="5" cellpadding="0" border="0">
630
Reimplemented in <a class="el" href="classxmlpp_1_1DomParser.html#b1">xmlpp::DomParser</a>, and <a class="el" href="classxmlpp_1_1SaxParser.html#b13">xmlpp::SaxParser</a>. </td>
633
<a class="anchor" name="a4"></a><!-- doxytag: member="xmlpp::Parser::set_substitute_entities" ref="a4" args="(bool val=true)" --><p>
634
<table class="mdTable" cellpadding="2" cellspacing="0">
637
<table cellpadding="0" cellspacing="0" border="0">
639
<td class="md" nowrap valign="top">virtual void xmlpp::Parser::set_substitute_entities </td>
640
<td class="md" valign="top">( </td>
641
<td class="md" nowrap valign="top"><a class="el" href="classbool.html">bool</a> </td>
642
<td class="mdname1" valign="top" nowrap> <em>val</em> = <code>true</code> </td>
643
<td class="md" valign="top"> ) </td>
644
<td class="md" nowrap><code> [virtual]</code></td>
650
<table cellspacing="5" cellpadding="0" border="0">
658
Set whether the parser will automatically substitute entity references with the text of the entities' definitions.
660
For instance, this affects the text returned by <a class="el" href="classxmlpp_1_1ContentNode.html#a2">ContentNode::get_content()</a>. By default, the parser will not substitute entities, so that you do not lose the entity reference information. <dl compact><dt><b>Parameters:</b></dt><dd>
661
<table border="0" cellspacing="2" cellpadding="0">
662
<tr><td valign="top"></td><td valign="top"><em>val</em> </td><td>Whether entities will be substitued.</td></tr>
668
<a class="anchor" name="a2"></a><!-- doxytag: member="xmlpp::Parser::set_validate" ref="a2" args="(bool val=true)" --><p>
669
<table class="mdTable" cellpadding="2" cellspacing="0">
672
<table cellpadding="0" cellspacing="0" border="0">
674
<td class="md" nowrap valign="top">virtual void xmlpp::Parser::set_validate </td>
675
<td class="md" valign="top">( </td>
676
<td class="md" nowrap valign="top"><a class="el" href="classbool.html">bool</a> </td>
677
<td class="mdname1" valign="top" nowrap> <em>val</em> = <code>true</code> </td>
678
<td class="md" valign="top"> ) </td>
679
<td class="md" nowrap><code> [virtual]</code></td>
685
<table cellspacing="5" cellpadding="0" border="0">
693
By default, the parser will not validate the XML file.
695
<dl compact><dt><b>Parameters:</b></dt><dd>
696
<table border="0" cellspacing="2" cellpadding="0">
697
<tr><td valign="top"></td><td valign="top"><em>val</em> </td><td>Whether the document should be validated.</td></tr>
703
<hr><h2>Member Data Documentation</h2>
704
<a class="anchor" name="p0"></a><!-- doxytag: member="xmlpp::Parser::context_" ref="p0" args="" --><p>
705
<table class="mdTable" cellpadding="2" cellspacing="0">
708
<table cellpadding="0" cellspacing="0" border="0">
710
<td class="md" nowrap valign="top">_xmlParserCtxt* <a class="el" href="classxmlpp_1_1Parser.html#p0">xmlpp::Parser::context_</a><code> [protected]</code> </td>
716
<table cellspacing="5" cellpadding="0" border="0">
727
<a class="anchor" name="p1"></a><!-- doxytag: member="xmlpp::Parser::exception_" ref="p1" args="" --><p>
728
<table class="mdTable" cellpadding="2" cellspacing="0">
731
<table cellpadding="0" cellspacing="0" border="0">
733
<td class="md" nowrap valign="top"><a class="el" href="classxmlpp_1_1exception.html">exception</a>* <a class="el" href="classxmlpp_1_1Parser.html#p1">xmlpp::Parser::exception_</a><code> [protected]</code> </td>
739
<table cellspacing="5" cellpadding="0" border="0">
750
<a class="anchor" name="p5"></a><!-- doxytag: member="xmlpp::Parser::substitute_entities_" ref="p5" args="" --><p>
751
<table class="mdTable" cellpadding="2" cellspacing="0">
754
<table cellpadding="0" cellspacing="0" border="0">
756
<td class="md" nowrap valign="top"><a class="el" href="classbool.html">bool</a> <a class="el" href="classxmlpp_1_1Parser.html#p5">xmlpp::Parser::substitute_entities_</a><code> [protected]</code> </td>
762
<table cellspacing="5" cellpadding="0" border="0">
773
<a class="anchor" name="p4"></a><!-- doxytag: member="xmlpp::Parser::validate_" ref="p4" args="" --><p>
774
<table class="mdTable" cellpadding="2" cellspacing="0">
777
<table cellpadding="0" cellspacing="0" border="0">
779
<td class="md" nowrap valign="top"><a class="el" href="classbool.html">bool</a> <a class="el" href="classxmlpp_1_1Parser.html#p4">xmlpp::Parser::validate_</a><code> [protected]</code> </td>
785
<table cellspacing="5" cellpadding="0" border="0">
796
<a class="anchor" name="p2"></a><!-- doxytag: member="xmlpp::Parser::validate_error_" ref="p2" args="" --><p>
797
<table class="mdTable" cellpadding="2" cellspacing="0">
800
<table cellpadding="0" cellspacing="0" border="0">
802
<td class="md" nowrap valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> <a class="el" href="classxmlpp_1_1Parser.html#p2">xmlpp::Parser::validate_error_</a><code> [protected]</code> </td>
808
<table cellspacing="5" cellpadding="0" border="0">
819
<a class="anchor" name="p3"></a><!-- doxytag: member="xmlpp::Parser::validate_warning_" ref="p3" args="" --><p>
820
<table class="mdTable" cellpadding="2" cellspacing="0">
823
<table cellpadding="0" cellspacing="0" border="0">
825
<td class="md" nowrap valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> <a class="el" href="classxmlpp_1_1Parser.html#p3">xmlpp::Parser::validate_warning_</a><code> [protected]</code> </td>
831
<table cellspacing="5" cellpadding="0" border="0">
842
<hr>The documentation for this class was generated from the following file:<ul>
843
<li><a class="el" href="parser_8h.html">parser.h</a></ul>
844
<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 13 16:33:59 2006 for libxml++ by
845
<a href="http://www.doxygen.org/index.html">
846
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4 </small></address>