~ubuntu-branches/ubuntu/precise/libxml++2.6/precise

« back to all changes in this revision

Viewing changes to docs/reference/2.10/html/classxmlpp_1_1SaxParser.html

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-03-13 15:46:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050313154633-iubyqdtu6y3p8915
Tags: 2.10.0-0ubuntu2
added doxygen to the build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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::SaxParser Class Reference</title>
 
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
 
5
</head><body>
 
6
<!-- Generated by Doxygen 1.4.0 -->
 
7
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
 
8
<div class="nav">
 
9
<a class="el" href="namespacexmlpp.html">xmlpp</a>::<a class="el" href="classxmlpp_1_1SaxParser.html">SaxParser</a></div>
 
10
<h1>xmlpp::SaxParser Class Reference</h1>SAX XML parser.  
 
11
<a href="#_details">More...</a>
 
12
<p>
 
13
Inheritance diagram for xmlpp::SaxParser:<p><center><img src="classxmlpp_1_1SaxParser__inherit__graph.jpg" border="0" usemap="#xmlpp_1_1SaxParser__inherit__map" alt="Inheritance graph"></center>
 
14
<map name="xmlpp_1_1SaxParser__inherit__map">
 
15
<area href="classxmlpp_1_1Parser.html" shape="rect" coords="27,86,123,105" alt="">
 
16
<area href="classxmlpp_1_1NonCopyable.html" shape="rect" coords="7,17,143,36" alt="">
 
17
</map>
 
18
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classxmlpp_1_1SaxParser-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
 
19
<tr><td></td></tr>
 
20
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
 
21
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <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_1deque.html">std::deque</a>&lt; <a class="el" href="structxmlpp_1_1SaxParser_1_1Attribute.html">Attribute</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#w0">AttributeList</a></td></tr>
 
22
 
 
23
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
 
24
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#a0">SaxParser</a> (<a class="el" href="classbool.html">bool</a> use_get_entity=false)</td></tr>
 
25
 
 
26
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#a1">~SaxParser</a> ()</td></tr>
 
27
 
 
28
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#a2">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> &amp;filename)</td></tr>
 
29
 
 
30
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse an XML document from a file.  <a href="#a2"></a><br></td></tr>
 
31
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#a3">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> &amp;contents)</td></tr>
 
32
 
 
33
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse an XML document from a string.  <a href="#a3"></a><br></td></tr>
 
34
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#a4">parse_memory_raw</a> (const unsigned char *contents, <a class="el" href="classxmlpp_1_1Parser.html#w0">size_type</a> bytes_count)</td></tr>
 
35
 
 
36
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse an XML document from raw memory.  <a href="#a4"></a><br></td></tr>
 
37
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#a5">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> &amp;in)</td></tr>
 
38
 
 
39
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse an XML document from a stream.  <a href="#a5"></a><br></td></tr>
 
40
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#a6">parse_chunk</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> &amp;chunk)</td></tr>
 
41
 
 
42
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse a chunk of data.  <a href="#a6"></a><br></td></tr>
 
43
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#a7">finish_chunk_parsing</a> ()</td></tr>
 
44
 
 
45
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Finish a chunk-wise parse.  <a href="#a7"></a><br></td></tr>
 
46
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
 
47
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b0">on_start_document</a> ()</td></tr>
 
48
 
 
49
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b1">on_end_document</a> ()</td></tr>
 
50
 
 
51
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b2">on_start_element</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> &amp;name, const <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_1deque.html">AttributeList</a> &amp;attributes)</td></tr>
 
52
 
 
53
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b3">on_end_element</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> &amp;name)</td></tr>
 
54
 
 
55
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b4">on_characters</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> &amp;characters)</td></tr>
 
56
 
 
57
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b5">on_comment</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> &amp;text)</td></tr>
 
58
 
 
59
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b6">on_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> &amp;text)</td></tr>
 
60
 
 
61
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b7">on_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> &amp;text)</td></tr>
 
62
 
 
63
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b8">on_fatal_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> &amp;text)</td></tr>
 
64
 
 
65
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b9">on_cdata_block</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> &amp;text)</td></tr>
 
66
 
 
67
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b10">on_internal_subset</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> &amp;name, 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> &amp;publicId, 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> &amp;systemId)</td></tr>
 
68
 
 
69
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Override this to receive information about the document's DTD and any entity declarations.  <a href="#b10"></a><br></td></tr>
 
70
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual _xmlEntity *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b11">on_get_entity</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> &amp;name)</td></tr>
 
71
 
 
72
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Override this method to resolve entities references in your derived parser, instead of using the default entity resolution, or to be informed when entity references are encountered.  <a href="#b11"></a><br></td></tr>
 
73
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b12">on_entity_declaration</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> &amp;name, <a class="el" href="namespacexmlpp.html#a7">XmlEntityType</a> type, 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> &amp;publicId, 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> &amp;systemId, 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> &amp;content)</td></tr>
 
74
 
 
75
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Override this to receive information about every entity declaration.  <a href="#b12"></a><br></td></tr>
 
76
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#b13">release_underlying</a> ()</td></tr>
 
77
 
 
78
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
 
79
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1SaxParser.html#n0">SaxParserCallback</a></td></tr>
 
80
 
 
81
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
 
82
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structxmlpp_1_1SaxParser_1_1Attribute.html">Attribute</a></td></tr>
 
83
 
 
84
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Simple structure used in the start_element callback, in which the attributes are a list of name/value pairs.  <a href="structxmlpp_1_1SaxParser_1_1Attribute.html#_details">More...</a><br></td></tr>
 
85
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structxmlpp_1_1SaxParser_1_1AttributeHasName.html">AttributeHasName</a></td></tr>
 
86
 
 
87
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This functor is a helper to find an attribute by name in an AttributeList using the standard algorithm <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a237">std::find_if</a>.  <a href="structxmlpp_1_1SaxParser_1_1AttributeHasName.html#_details">More...</a><br></td></tr>
 
88
</table>
 
89
<hr><a name="_details"></a><h2>Detailed Description</h2>
 
90
SAX XML parser. 
 
91
<p>
 
92
Derive your own class and override the on_*() methods. 
 
93
<p>
 
94
<hr><h2>Member Typedef Documentation</h2>
 
95
<a class="anchor" name="w0" doxytag="xmlpp::SaxParser::AttributeList"></a><p>
 
96
<table class="mdTable" cellpadding="2" cellspacing="0">
 
97
  <tr>
 
98
    <td class="mdRow">
 
99
      <table cellpadding="0" cellspacing="0" border="0">
 
100
        <tr>
 
101
          <td class="md" nowrap valign="top">typedef <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_1deque.html">std::deque</a>&lt; <a class="el" href="structxmlpp_1_1SaxParser_1_1Attribute.html">Attribute</a> &gt; <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_1deque.html">xmlpp::SaxParser::AttributeList</a>          </td>
 
102
        </tr>
 
103
      </table>
 
104
    </td>
 
105
  </tr>
 
106
</table>
 
107
<table cellspacing="5" cellpadding="0" border="0">
 
108
  <tr>
 
109
    <td>
 
110
      &nbsp;
 
111
    </td>
 
112
    <td>
 
113
 
 
114
<p>
 
115
    </td>
 
116
  </tr>
 
117
</table>
 
118
<hr><h2>Constructor &amp; Destructor Documentation</h2>
 
119
<a class="anchor" name="a0" doxytag="xmlpp::SaxParser::SaxParser"></a><p>
 
120
<table class="mdTable" cellpadding="2" cellspacing="0">
 
121
  <tr>
 
122
    <td class="mdRow">
 
123
      <table cellpadding="0" cellspacing="0" border="0">
 
124
        <tr>
 
125
          <td class="md" nowrap valign="top">xmlpp::SaxParser::SaxParser           </td>
 
126
          <td class="md" valign="top">(&nbsp;</td>
 
127
          <td class="md" nowrap valign="top"><a class="el" href="classbool.html">bool</a>&nbsp;</td>
 
128
          <td class="mdname1" valign="top" nowrap> <em>use_get_entity</em> = <code>false</code>          </td>
 
129
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
130
          <td class="md" nowrap></td>
 
131
        </tr>
 
132
      </table>
 
133
    </td>
 
134
  </tr>
 
135
</table>
 
136
<table cellspacing="5" cellpadding="0" border="0">
 
137
  <tr>
 
138
    <td>
 
139
      &nbsp;
 
140
    </td>
 
141
    <td>
 
142
 
 
143
<p>
 
144
<dl compact><dt><b>Parameters:</b></dt><dd>
 
145
  <table border="0" cellspacing="2" cellpadding="0">
 
146
    <tr><td valign="top"></td><td valign="top"><em>use_get_entity</em>&nbsp;</td><td>Set this to true if you will override <a class="el" href="classxmlpp_1_1SaxParser.html#b11">on_get_entity()</a>. In theory, if you do not override <a class="el" href="classxmlpp_1_1SaxParser.html#b11">on_get_entity()</a> the parser should behave exactly the same whether you use true or false here. But the default implementation of <a class="el" href="classxmlpp_1_1SaxParser.html#b11">on_get_entity()</a>, needed if you override <a class="el" href="classxmlpp_1_1SaxParser.html#b11">on_get_entity()</a> might not have the same behaviour as the underlying default behaviour of libxml, so the libxml implementation is the default here. </td></tr>
 
147
  </table>
 
148
</dl>
 
149
    </td>
 
150
  </tr>
 
151
</table>
 
152
<a class="anchor" name="a1" doxytag="xmlpp::SaxParser::~SaxParser"></a><p>
 
153
<table class="mdTable" cellpadding="2" cellspacing="0">
 
154
  <tr>
 
155
    <td class="mdRow">
 
156
      <table cellpadding="0" cellspacing="0" border="0">
 
157
        <tr>
 
158
          <td class="md" nowrap valign="top">virtual xmlpp::SaxParser::~<a class="el" href="classxmlpp_1_1SaxParser.html">SaxParser</a>           </td>
 
159
          <td class="md" valign="top">(&nbsp;</td>
 
160
          <td class="mdname1" valign="top" nowrap>          </td>
 
161
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
162
          <td class="md" nowrap><code> [virtual]</code></td>
 
163
        </tr>
 
164
      </table>
 
165
    </td>
 
166
  </tr>
 
167
</table>
 
168
<table cellspacing="5" cellpadding="0" border="0">
 
169
  <tr>
 
170
    <td>
 
171
      &nbsp;
 
172
    </td>
 
173
    <td>
 
174
 
 
175
<p>
 
176
    </td>
 
177
  </tr>
 
178
</table>
 
179
<hr><h2>Member Function Documentation</h2>
 
180
<a class="anchor" name="a7" doxytag="xmlpp::SaxParser::finish_chunk_parsing"></a><p>
 
181
<table class="mdTable" cellpadding="2" cellspacing="0">
 
182
  <tr>
 
183
    <td class="mdRow">
 
184
      <table cellpadding="0" cellspacing="0" border="0">
 
185
        <tr>
 
186
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::finish_chunk_parsing           </td>
 
187
          <td class="md" valign="top">(&nbsp;</td>
 
188
          <td class="mdname1" valign="top" nowrap>          </td>
 
189
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
190
          <td class="md" nowrap><code> [virtual]</code></td>
 
191
        </tr>
 
192
      </table>
 
193
    </td>
 
194
  </tr>
 
195
</table>
 
196
<table cellspacing="5" cellpadding="0" border="0">
 
197
  <tr>
 
198
    <td>
 
199
      &nbsp;
 
200
    </td>
 
201
    <td>
 
202
 
 
203
<p>
 
204
Finish a chunk-wise parse. 
 
205
<p>
 
206
Call this after the last call to <a class="el" href="classxmlpp_1_1SaxParser.html#a6">parse_chunk()</a>. Don't use this function with the other parsing methods.     </td>
 
207
  </tr>
 
208
</table>
 
209
<a class="anchor" name="b9" doxytag="xmlpp::SaxParser::on_cdata_block"></a><p>
 
210
<table class="mdTable" cellpadding="2" cellspacing="0">
 
211
  <tr>
 
212
    <td class="mdRow">
 
213
      <table cellpadding="0" cellspacing="0" border="0">
 
214
        <tr>
 
215
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::on_cdata_block           </td>
 
216
          <td class="md" valign="top">(&nbsp;</td>
 
217
          <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> &amp;&nbsp;</td>
 
218
          <td class="mdname1" valign="top" nowrap> <em>text</em>          </td>
 
219
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
220
          <td class="md" nowrap><code> [protected, virtual]</code></td>
 
221
        </tr>
 
222
      </table>
 
223
    </td>
 
224
  </tr>
 
225
</table>
 
226
<table cellspacing="5" cellpadding="0" border="0">
 
227
  <tr>
 
228
    <td>
 
229
      &nbsp;
 
230
    </td>
 
231
    <td>
 
232
 
 
233
<p>
 
234
    </td>
 
235
  </tr>
 
236
</table>
 
237
<a class="anchor" name="b4" doxytag="xmlpp::SaxParser::on_characters"></a><p>
 
238
<table class="mdTable" cellpadding="2" cellspacing="0">
 
239
  <tr>
 
240
    <td class="mdRow">
 
241
      <table cellpadding="0" cellspacing="0" border="0">
 
242
        <tr>
 
243
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::on_characters           </td>
 
244
          <td class="md" valign="top">(&nbsp;</td>
 
245
          <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> &amp;&nbsp;</td>
 
246
          <td class="mdname1" valign="top" nowrap> <em>characters</em>          </td>
 
247
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
248
          <td class="md" nowrap><code> [protected, virtual]</code></td>
 
249
        </tr>
 
250
      </table>
 
251
    </td>
 
252
  </tr>
 
253
</table>
 
254
<table cellspacing="5" cellpadding="0" border="0">
 
255
  <tr>
 
256
    <td>
 
257
      &nbsp;
 
258
    </td>
 
259
    <td>
 
260
 
 
261
<p>
 
262
    </td>
 
263
  </tr>
 
264
</table>
 
265
<a class="anchor" name="b5" doxytag="xmlpp::SaxParser::on_comment"></a><p>
 
266
<table class="mdTable" cellpadding="2" cellspacing="0">
 
267
  <tr>
 
268
    <td class="mdRow">
 
269
      <table cellpadding="0" cellspacing="0" border="0">
 
270
        <tr>
 
271
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::on_comment           </td>
 
272
          <td class="md" valign="top">(&nbsp;</td>
 
273
          <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> &amp;&nbsp;</td>
 
274
          <td class="mdname1" valign="top" nowrap> <em>text</em>          </td>
 
275
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
276
          <td class="md" nowrap><code> [protected, virtual]</code></td>
 
277
        </tr>
 
278
      </table>
 
279
    </td>
 
280
  </tr>
 
281
</table>
 
282
<table cellspacing="5" cellpadding="0" border="0">
 
283
  <tr>
 
284
    <td>
 
285
      &nbsp;
 
286
    </td>
 
287
    <td>
 
288
 
 
289
<p>
 
290
    </td>
 
291
  </tr>
 
292
</table>
 
293
<a class="anchor" name="b1" doxytag="xmlpp::SaxParser::on_end_document"></a><p>
 
294
<table class="mdTable" cellpadding="2" cellspacing="0">
 
295
  <tr>
 
296
    <td class="mdRow">
 
297
      <table cellpadding="0" cellspacing="0" border="0">
 
298
        <tr>
 
299
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::on_end_document           </td>
 
300
          <td class="md" valign="top">(&nbsp;</td>
 
301
          <td class="mdname1" valign="top" nowrap>          </td>
 
302
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
303
          <td class="md" nowrap><code> [protected, virtual]</code></td>
 
304
        </tr>
 
305
      </table>
 
306
    </td>
 
307
  </tr>
 
308
</table>
 
309
<table cellspacing="5" cellpadding="0" border="0">
 
310
  <tr>
 
311
    <td>
 
312
      &nbsp;
 
313
    </td>
 
314
    <td>
 
315
 
 
316
<p>
 
317
    </td>
 
318
  </tr>
 
319
</table>
 
320
<a class="anchor" name="b3" doxytag="xmlpp::SaxParser::on_end_element"></a><p>
 
321
<table class="mdTable" cellpadding="2" cellspacing="0">
 
322
  <tr>
 
323
    <td class="mdRow">
 
324
      <table cellpadding="0" cellspacing="0" border="0">
 
325
        <tr>
 
326
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::on_end_element           </td>
 
327
          <td class="md" valign="top">(&nbsp;</td>
 
328
          <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> &amp;&nbsp;</td>
 
329
          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
 
330
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
331
          <td class="md" nowrap><code> [protected, virtual]</code></td>
 
332
        </tr>
 
333
      </table>
 
334
    </td>
 
335
  </tr>
 
336
</table>
 
337
<table cellspacing="5" cellpadding="0" border="0">
 
338
  <tr>
 
339
    <td>
 
340
      &nbsp;
 
341
    </td>
 
342
    <td>
 
343
 
 
344
<p>
 
345
    </td>
 
346
  </tr>
 
347
</table>
 
348
<a class="anchor" name="b12" doxytag="xmlpp::SaxParser::on_entity_declaration"></a><p>
 
349
<table class="mdTable" cellpadding="2" cellspacing="0">
 
350
  <tr>
 
351
    <td class="mdRow">
 
352
      <table cellpadding="0" cellspacing="0" border="0">
 
353
        <tr>
 
354
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::on_entity_declaration           </td>
 
355
          <td class="md" valign="top">(&nbsp;</td>
 
356
          <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> &amp;&nbsp;</td>
 
357
          <td class="mdname" nowrap> <em>name</em>, </td>
 
358
        </tr>
 
359
        <tr>
 
360
          <td class="md" nowrap align="right"></td>
 
361
          <td class="md"></td>
 
362
          <td class="md" nowrap><a class="el" href="namespacexmlpp.html#a7">XmlEntityType</a>&nbsp;</td>
 
363
          <td class="mdname" nowrap> <em>type</em>, </td>
 
364
        </tr>
 
365
        <tr>
 
366
          <td class="md" nowrap align="right"></td>
 
367
          <td class="md"></td>
 
368
          <td class="md" nowrap>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> &amp;&nbsp;</td>
 
369
          <td class="mdname" nowrap> <em>publicId</em>, </td>
 
370
        </tr>
 
371
        <tr>
 
372
          <td class="md" nowrap align="right"></td>
 
373
          <td class="md"></td>
 
374
          <td class="md" nowrap>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> &amp;&nbsp;</td>
 
375
          <td class="mdname" nowrap> <em>systemId</em>, </td>
 
376
        </tr>
 
377
        <tr>
 
378
          <td class="md" nowrap align="right"></td>
 
379
          <td class="md"></td>
 
380
          <td class="md" nowrap>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> &amp;&nbsp;</td>
 
381
          <td class="mdname" nowrap> <em>content</em></td>
 
382
        </tr>
 
383
        <tr>
 
384
          <td class="md"></td>
 
385
          <td class="md">)&nbsp;</td>
 
386
          <td class="md" colspan="2"><code> [protected, virtual]</code></td>
 
387
        </tr>
 
388
      </table>
 
389
    </td>
 
390
  </tr>
 
391
</table>
 
392
<table cellspacing="5" cellpadding="0" border="0">
 
393
  <tr>
 
394
    <td>
 
395
      &nbsp;
 
396
    </td>
 
397
    <td>
 
398
 
 
399
<p>
 
400
Override this to receive information about every entity declaration. 
 
401
<p>
 
402
If you override this function, and you want normal entity substitution to work, then you must call the base class in your override.<p>
 
403
This would be useful when overriding <a class="el" href="classxmlpp_1_1SaxParser.html#b11">on_get_entity()</a>.     </td>
 
404
  </tr>
 
405
</table>
 
406
<a class="anchor" name="b7" doxytag="xmlpp::SaxParser::on_error"></a><p>
 
407
<table class="mdTable" cellpadding="2" cellspacing="0">
 
408
  <tr>
 
409
    <td class="mdRow">
 
410
      <table cellpadding="0" cellspacing="0" border="0">
 
411
        <tr>
 
412
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::on_error           </td>
 
413
          <td class="md" valign="top">(&nbsp;</td>
 
414
          <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> &amp;&nbsp;</td>
 
415
          <td class="mdname1" valign="top" nowrap> <em>text</em>          </td>
 
416
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
417
          <td class="md" nowrap><code> [protected, virtual]</code></td>
 
418
        </tr>
 
419
      </table>
 
420
    </td>
 
421
  </tr>
 
422
</table>
 
423
<table cellspacing="5" cellpadding="0" border="0">
 
424
  <tr>
 
425
    <td>
 
426
      &nbsp;
 
427
    </td>
 
428
    <td>
 
429
 
 
430
<p>
 
431
    </td>
 
432
  </tr>
 
433
</table>
 
434
<a class="anchor" name="b8" doxytag="xmlpp::SaxParser::on_fatal_error"></a><p>
 
435
<table class="mdTable" cellpadding="2" cellspacing="0">
 
436
  <tr>
 
437
    <td class="mdRow">
 
438
      <table cellpadding="0" cellspacing="0" border="0">
 
439
        <tr>
 
440
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::on_fatal_error           </td>
 
441
          <td class="md" valign="top">(&nbsp;</td>
 
442
          <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> &amp;&nbsp;</td>
 
443
          <td class="mdname1" valign="top" nowrap> <em>text</em>          </td>
 
444
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
445
          <td class="md" nowrap><code> [protected, virtual]</code></td>
 
446
        </tr>
 
447
      </table>
 
448
    </td>
 
449
  </tr>
 
450
</table>
 
451
<table cellspacing="5" cellpadding="0" border="0">
 
452
  <tr>
 
453
    <td>
 
454
      &nbsp;
 
455
    </td>
 
456
    <td>
 
457
 
 
458
<p>
 
459
    </td>
 
460
  </tr>
 
461
</table>
 
462
<a class="anchor" name="b11" doxytag="xmlpp::SaxParser::on_get_entity"></a><p>
 
463
<table class="mdTable" cellpadding="2" cellspacing="0">
 
464
  <tr>
 
465
    <td class="mdRow">
 
466
      <table cellpadding="0" cellspacing="0" border="0">
 
467
        <tr>
 
468
          <td class="md" nowrap valign="top">virtual _xmlEntity* xmlpp::SaxParser::on_get_entity           </td>
 
469
          <td class="md" valign="top">(&nbsp;</td>
 
470
          <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> &amp;&nbsp;</td>
 
471
          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
 
472
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
473
          <td class="md" nowrap><code> [protected, virtual]</code></td>
 
474
        </tr>
 
475
      </table>
 
476
    </td>
 
477
  </tr>
 
478
</table>
 
479
<table cellspacing="5" cellpadding="0" border="0">
 
480
  <tr>
 
481
    <td>
 
482
      &nbsp;
 
483
    </td>
 
484
    <td>
 
485
 
 
486
<p>
 
487
Override this method to resolve entities references in your derived parser, instead of using the default entity resolution, or to be informed when entity references are encountered. 
 
488
<p>
 
489
If you override this function then you must also specify true for use_get_entity constructor parameter. You will probably need to override <a class="el" href="classxmlpp_1_1SaxParser.html#b12">on_entity_declaration()</a> as well so that you can use that information when resolving the entity reference.<p>
 
490
This is known to be difficult, because it requires both an understanding of the W3C specifications and knowledge of the libxml internals. Entity resolution is easier with the <a class="el" href="classxmlpp_1_1DomParser.html">DomParser</a>.<p>
 
491
Call this method in this base class for default processing. For instance, if you just want to know about the existence of an entity reference, without affecting the normal substitution, just override and call the base class.<p>
 
492
Unlike the <a class="el" href="classxmlpp_1_1DomParser.html">DomParser</a>, the <a class="el" href="classxmlpp_1_1SaxParser.html">SaxParser</a> will also tell you about entity references for the 5 predefined entities.<p>
 
493
<dl compact><dt><b>Parameters:</b></dt><dd>
 
494
  <table border="0" cellspacing="2" cellpadding="0">
 
495
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The entity reference name. </td></tr>
 
496
  </table>
 
497
</dl>
 
498
<dl compact><dt><b>Returns:</b></dt><dd>The resolved xmlEntity for the entity reference. You must include libxml/parser.h in order to use this C struct. This instance will not be freed by the caller. </dd></dl>
 
499
    </td>
 
500
  </tr>
 
501
</table>
 
502
<a class="anchor" name="b10" doxytag="xmlpp::SaxParser::on_internal_subset"></a><p>
 
503
<table class="mdTable" cellpadding="2" cellspacing="0">
 
504
  <tr>
 
505
    <td class="mdRow">
 
506
      <table cellpadding="0" cellspacing="0" border="0">
 
507
        <tr>
 
508
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::on_internal_subset           </td>
 
509
          <td class="md" valign="top">(&nbsp;</td>
 
510
          <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> &amp;&nbsp;</td>
 
511
          <td class="mdname" nowrap> <em>name</em>, </td>
 
512
        </tr>
 
513
        <tr>
 
514
          <td class="md" nowrap align="right"></td>
 
515
          <td class="md"></td>
 
516
          <td class="md" nowrap>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> &amp;&nbsp;</td>
 
517
          <td class="mdname" nowrap> <em>publicId</em>, </td>
 
518
        </tr>
 
519
        <tr>
 
520
          <td class="md" nowrap align="right"></td>
 
521
          <td class="md"></td>
 
522
          <td class="md" nowrap>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> &amp;&nbsp;</td>
 
523
          <td class="mdname" nowrap> <em>systemId</em></td>
 
524
        </tr>
 
525
        <tr>
 
526
          <td class="md"></td>
 
527
          <td class="md">)&nbsp;</td>
 
528
          <td class="md" colspan="2"><code> [protected, virtual]</code></td>
 
529
        </tr>
 
530
      </table>
 
531
    </td>
 
532
  </tr>
 
533
</table>
 
534
<table cellspacing="5" cellpadding="0" border="0">
 
535
  <tr>
 
536
    <td>
 
537
      &nbsp;
 
538
    </td>
 
539
    <td>
 
540
 
 
541
<p>
 
542
Override this to receive information about the document's DTD and any entity declarations. 
 
543
<p>
 
544
    </td>
 
545
  </tr>
 
546
</table>
 
547
<a class="anchor" name="b0" doxytag="xmlpp::SaxParser::on_start_document"></a><p>
 
548
<table class="mdTable" cellpadding="2" cellspacing="0">
 
549
  <tr>
 
550
    <td class="mdRow">
 
551
      <table cellpadding="0" cellspacing="0" border="0">
 
552
        <tr>
 
553
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::on_start_document           </td>
 
554
          <td class="md" valign="top">(&nbsp;</td>
 
555
          <td class="mdname1" valign="top" nowrap>          </td>
 
556
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
557
          <td class="md" nowrap><code> [protected, virtual]</code></td>
 
558
        </tr>
 
559
      </table>
 
560
    </td>
 
561
  </tr>
 
562
</table>
 
563
<table cellspacing="5" cellpadding="0" border="0">
 
564
  <tr>
 
565
    <td>
 
566
      &nbsp;
 
567
    </td>
 
568
    <td>
 
569
 
 
570
<p>
 
571
    </td>
 
572
  </tr>
 
573
</table>
 
574
<a class="anchor" name="b2" doxytag="xmlpp::SaxParser::on_start_element"></a><p>
 
575
<table class="mdTable" cellpadding="2" cellspacing="0">
 
576
  <tr>
 
577
    <td class="mdRow">
 
578
      <table cellpadding="0" cellspacing="0" border="0">
 
579
        <tr>
 
580
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::on_start_element           </td>
 
581
          <td class="md" valign="top">(&nbsp;</td>
 
582
          <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> &amp;&nbsp;</td>
 
583
          <td class="mdname" nowrap> <em>name</em>, </td>
 
584
        </tr>
 
585
        <tr>
 
586
          <td class="md" nowrap align="right"></td>
 
587
          <td class="md"></td>
 
588
          <td class="md" nowrap>const <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_1deque.html">AttributeList</a> &amp;&nbsp;</td>
 
589
          <td class="mdname" nowrap> <em>attributes</em></td>
 
590
        </tr>
 
591
        <tr>
 
592
          <td class="md"></td>
 
593
          <td class="md">)&nbsp;</td>
 
594
          <td class="md" colspan="2"><code> [protected, virtual]</code></td>
 
595
        </tr>
 
596
      </table>
 
597
    </td>
 
598
  </tr>
 
599
</table>
 
600
<table cellspacing="5" cellpadding="0" border="0">
 
601
  <tr>
 
602
    <td>
 
603
      &nbsp;
 
604
    </td>
 
605
    <td>
 
606
 
 
607
<p>
 
608
    </td>
 
609
  </tr>
 
610
</table>
 
611
<a class="anchor" name="b6" doxytag="xmlpp::SaxParser::on_warning"></a><p>
 
612
<table class="mdTable" cellpadding="2" cellspacing="0">
 
613
  <tr>
 
614
    <td class="mdRow">
 
615
      <table cellpadding="0" cellspacing="0" border="0">
 
616
        <tr>
 
617
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::on_warning           </td>
 
618
          <td class="md" valign="top">(&nbsp;</td>
 
619
          <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> &amp;&nbsp;</td>
 
620
          <td class="mdname1" valign="top" nowrap> <em>text</em>          </td>
 
621
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
622
          <td class="md" nowrap><code> [protected, virtual]</code></td>
 
623
        </tr>
 
624
      </table>
 
625
    </td>
 
626
  </tr>
 
627
</table>
 
628
<table cellspacing="5" cellpadding="0" border="0">
 
629
  <tr>
 
630
    <td>
 
631
      &nbsp;
 
632
    </td>
 
633
    <td>
 
634
 
 
635
<p>
 
636
    </td>
 
637
  </tr>
 
638
</table>
 
639
<a class="anchor" name="a6" doxytag="xmlpp::SaxParser::parse_chunk"></a><p>
 
640
<table class="mdTable" cellpadding="2" cellspacing="0">
 
641
  <tr>
 
642
    <td class="mdRow">
 
643
      <table cellpadding="0" cellspacing="0" border="0">
 
644
        <tr>
 
645
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::parse_chunk           </td>
 
646
          <td class="md" valign="top">(&nbsp;</td>
 
647
          <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> &amp;&nbsp;</td>
 
648
          <td class="mdname1" valign="top" nowrap> <em>chunk</em>          </td>
 
649
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
650
          <td class="md" nowrap><code> [virtual]</code></td>
 
651
        </tr>
 
652
      </table>
 
653
    </td>
 
654
  </tr>
 
655
</table>
 
656
<table cellspacing="5" cellpadding="0" border="0">
 
657
  <tr>
 
658
    <td>
 
659
      &nbsp;
 
660
    </td>
 
661
    <td>
 
662
 
 
663
<p>
 
664
Parse a chunk of data. 
 
665
<p>
 
666
This lets you pass a document in small chunks, e.g. from a network connection. The on_* virtual functions are called each time the chunks provide enough information to advance the parser.<p>
 
667
The first call to parse_chunk will setup the parser. When the last chunk has been parsed, call <a class="el" href="classxmlpp_1_1SaxParser.html#a7">finish_chunk_parsing()</a> to finish the parse.<p>
 
668
<dl compact><dt><b>Exceptions:</b></dt><dd>
 
669
  <table border="0" cellspacing="2" cellpadding="0">
 
670
    <tr><td valign="top"></td><td valign="top"><em>exception</em>&nbsp;</td><td></td></tr>
 
671
  </table>
 
672
</dl>
 
673
<dl compact><dt><b>Parameters:</b></dt><dd>
 
674
  <table border="0" cellspacing="2" cellpadding="0">
 
675
    <tr><td valign="top"></td><td valign="top"><em>chunk</em>&nbsp;</td><td>The next piece of the XML document. </td></tr>
 
676
  </table>
 
677
</dl>
 
678
    </td>
 
679
  </tr>
 
680
</table>
 
681
<a class="anchor" name="a2" doxytag="xmlpp::SaxParser::parse_file"></a><p>
 
682
<table class="mdTable" cellpadding="2" cellspacing="0">
 
683
  <tr>
 
684
    <td class="mdRow">
 
685
      <table cellpadding="0" cellspacing="0" border="0">
 
686
        <tr>
 
687
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::parse_file           </td>
 
688
          <td class="md" valign="top">(&nbsp;</td>
 
689
          <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> &amp;&nbsp;</td>
 
690
          <td class="mdname1" valign="top" nowrap> <em>filename</em>          </td>
 
691
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
692
          <td class="md" nowrap><code> [virtual]</code></td>
 
693
        </tr>
 
694
      </table>
 
695
    </td>
 
696
  </tr>
 
697
</table>
 
698
<table cellspacing="5" cellpadding="0" border="0">
 
699
  <tr>
 
700
    <td>
 
701
      &nbsp;
 
702
    </td>
 
703
    <td>
 
704
 
 
705
<p>
 
706
Parse an XML document from a file. 
 
707
<p>
 
708
<dl compact><dt><b>Exceptions:</b></dt><dd>
 
709
  <table border="0" cellspacing="2" cellpadding="0">
 
710
    <tr><td valign="top"></td><td valign="top"><em>exception</em>&nbsp;</td><td></td></tr>
 
711
  </table>
 
712
</dl>
 
713
<dl compact><dt><b>Parameters:</b></dt><dd>
 
714
  <table border="0" cellspacing="2" cellpadding="0">
 
715
    <tr><td valign="top"></td><td valign="top"><em>filename</em>&nbsp;</td><td>The path to the file. </td></tr>
 
716
  </table>
 
717
</dl>
 
718
 
 
719
<p>
 
720
Implements <a class="el" href="classxmlpp_1_1Parser.html#a6">xmlpp::Parser</a>.    </td>
 
721
  </tr>
 
722
</table>
 
723
<a class="anchor" name="a3" doxytag="xmlpp::SaxParser::parse_memory"></a><p>
 
724
<table class="mdTable" cellpadding="2" cellspacing="0">
 
725
  <tr>
 
726
    <td class="mdRow">
 
727
      <table cellpadding="0" cellspacing="0" border="0">
 
728
        <tr>
 
729
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::parse_memory           </td>
 
730
          <td class="md" valign="top">(&nbsp;</td>
 
731
          <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> &amp;&nbsp;</td>
 
732
          <td class="mdname1" valign="top" nowrap> <em>contents</em>          </td>
 
733
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
734
          <td class="md" nowrap><code> [virtual]</code></td>
 
735
        </tr>
 
736
      </table>
 
737
    </td>
 
738
  </tr>
 
739
</table>
 
740
<table cellspacing="5" cellpadding="0" border="0">
 
741
  <tr>
 
742
    <td>
 
743
      &nbsp;
 
744
    </td>
 
745
    <td>
 
746
 
 
747
<p>
 
748
Parse an XML document from a string. 
 
749
<p>
 
750
<dl compact><dt><b>Exceptions:</b></dt><dd>
 
751
  <table border="0" cellspacing="2" cellpadding="0">
 
752
    <tr><td valign="top"></td><td valign="top"><em>exception</em>&nbsp;</td><td></td></tr>
 
753
  </table>
 
754
</dl>
 
755
<dl compact><dt><b>Parameters:</b></dt><dd>
 
756
  <table border="0" cellspacing="2" cellpadding="0">
 
757
    <tr><td valign="top"></td><td valign="top"><em>contents</em>&nbsp;</td><td>The XML document as a string. </td></tr>
 
758
  </table>
 
759
</dl>
 
760
 
 
761
<p>
 
762
Implements <a class="el" href="classxmlpp_1_1Parser.html#a7">xmlpp::Parser</a>.    </td>
 
763
  </tr>
 
764
</table>
 
765
<a class="anchor" name="a4" doxytag="xmlpp::SaxParser::parse_memory_raw"></a><p>
 
766
<table class="mdTable" cellpadding="2" cellspacing="0">
 
767
  <tr>
 
768
    <td class="mdRow">
 
769
      <table cellpadding="0" cellspacing="0" border="0">
 
770
        <tr>
 
771
          <td class="md" nowrap valign="top">void xmlpp::SaxParser::parse_memory_raw           </td>
 
772
          <td class="md" valign="top">(&nbsp;</td>
 
773
          <td class="md" nowrap valign="top">const unsigned char *&nbsp;</td>
 
774
          <td class="mdname" nowrap> <em>contents</em>, </td>
 
775
        </tr>
 
776
        <tr>
 
777
          <td class="md" nowrap align="right"></td>
 
778
          <td class="md"></td>
 
779
          <td class="md" nowrap><a class="el" href="classxmlpp_1_1Parser.html#w0">size_type</a>&nbsp;</td>
 
780
          <td class="mdname" nowrap> <em>bytes_count</em></td>
 
781
        </tr>
 
782
        <tr>
 
783
          <td class="md"></td>
 
784
          <td class="md">)&nbsp;</td>
 
785
          <td class="md" colspan="2"></td>
 
786
        </tr>
 
787
      </table>
 
788
    </td>
 
789
  </tr>
 
790
</table>
 
791
<table cellspacing="5" cellpadding="0" border="0">
 
792
  <tr>
 
793
    <td>
 
794
      &nbsp;
 
795
    </td>
 
796
    <td>
 
797
 
 
798
<p>
 
799
Parse an XML document from raw memory. 
 
800
<p>
 
801
<dl compact><dt><b>Exceptions:</b></dt><dd>
 
802
  <table border="0" cellspacing="2" cellpadding="0">
 
803
    <tr><td valign="top"></td><td valign="top"><em>exception</em>&nbsp;</td><td></td></tr>
 
804
  </table>
 
805
</dl>
 
806
<dl compact><dt><b>Parameters:</b></dt><dd>
 
807
  <table border="0" cellspacing="2" cellpadding="0">
 
808
    <tr><td valign="top"></td><td valign="top"><em>contents</em>&nbsp;</td><td>The XML document as an array of bytes. </td></tr>
 
809
    <tr><td valign="top"></td><td valign="top"><em>bytes_count</em>&nbsp;</td><td>The number of bytes in the <em>contents</em> array. </td></tr>
 
810
  </table>
 
811
</dl>
 
812
    </td>
 
813
  </tr>
 
814
</table>
 
815
<a class="anchor" name="a5" doxytag="xmlpp::SaxParser::parse_stream"></a><p>
 
816
<table class="mdTable" cellpadding="2" cellspacing="0">
 
817
  <tr>
 
818
    <td class="mdRow">
 
819
      <table cellpadding="0" cellspacing="0" border="0">
 
820
        <tr>
 
821
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::parse_stream           </td>
 
822
          <td class="md" valign="top">(&nbsp;</td>
 
823
          <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> &amp;&nbsp;</td>
 
824
          <td class="mdname1" valign="top" nowrap> <em>in</em>          </td>
 
825
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
826
          <td class="md" nowrap><code> [virtual]</code></td>
 
827
        </tr>
 
828
      </table>
 
829
    </td>
 
830
  </tr>
 
831
</table>
 
832
<table cellspacing="5" cellpadding="0" border="0">
 
833
  <tr>
 
834
    <td>
 
835
      &nbsp;
 
836
    </td>
 
837
    <td>
 
838
 
 
839
<p>
 
840
Parse an XML document from a stream. 
 
841
<p>
 
842
<dl compact><dt><b>Exceptions:</b></dt><dd>
 
843
  <table border="0" cellspacing="2" cellpadding="0">
 
844
    <tr><td valign="top"></td><td valign="top"><em>exception</em>&nbsp;</td><td></td></tr>
 
845
  </table>
 
846
</dl>
 
847
<dl compact><dt><b>Parameters:</b></dt><dd>
 
848
  <table border="0" cellspacing="2" cellpadding="0">
 
849
    <tr><td valign="top"></td><td valign="top"><em>in</em>&nbsp;</td><td>The stream. </td></tr>
 
850
  </table>
 
851
</dl>
 
852
 
 
853
<p>
 
854
Implements <a class="el" href="classxmlpp_1_1Parser.html#a8">xmlpp::Parser</a>.    </td>
 
855
  </tr>
 
856
</table>
 
857
<a class="anchor" name="b13" doxytag="xmlpp::SaxParser::release_underlying"></a><p>
 
858
<table class="mdTable" cellpadding="2" cellspacing="0">
 
859
  <tr>
 
860
    <td class="mdRow">
 
861
      <table cellpadding="0" cellspacing="0" border="0">
 
862
        <tr>
 
863
          <td class="md" nowrap valign="top">virtual void xmlpp::SaxParser::release_underlying           </td>
 
864
          <td class="md" valign="top">(&nbsp;</td>
 
865
          <td class="mdname1" valign="top" nowrap>          </td>
 
866
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
867
          <td class="md" nowrap><code> [protected, virtual]</code></td>
 
868
        </tr>
 
869
      </table>
 
870
    </td>
 
871
  </tr>
 
872
</table>
 
873
<table cellspacing="5" cellpadding="0" border="0">
 
874
  <tr>
 
875
    <td>
 
876
      &nbsp;
 
877
    </td>
 
878
    <td>
 
879
 
 
880
<p>
 
881
 
 
882
<p>
 
883
Reimplemented from <a class="el" href="classxmlpp_1_1Parser.html#b1">xmlpp::Parser</a>.    </td>
 
884
  </tr>
 
885
</table>
 
886
<hr><h2>Friends And Related Function Documentation</h2>
 
887
<a class="anchor" name="n0" doxytag="xmlpp::SaxParser::SaxParserCallback"></a><p>
 
888
<table class="mdTable" cellpadding="2" cellspacing="0">
 
889
  <tr>
 
890
    <td class="mdRow">
 
891
      <table cellpadding="0" cellspacing="0" border="0">
 
892
        <tr>
 
893
          <td class="md" nowrap valign="top">friend struct SaxParserCallback<code> [friend]</code>          </td>
 
894
        </tr>
 
895
      </table>
 
896
    </td>
 
897
  </tr>
 
898
</table>
 
899
<table cellspacing="5" cellpadding="0" border="0">
 
900
  <tr>
 
901
    <td>
 
902
      &nbsp;
 
903
    </td>
 
904
    <td>
 
905
 
 
906
<p>
 
907
    </td>
 
908
  </tr>
 
909
</table>
 
910
<hr>The documentation for this class was generated from the following file:<ul>
 
911
<li><a class="el" href="saxparser_8h.html">saxparser.h</a></ul>
 
912
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 8 12:05:38 2005 for libxml++ by&nbsp;
 
913
<a href="http://www.doxygen.org/index.html">
 
914
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.0 </small></address>
 
915
</body>
 
916
</html>