File: Poco.XML.SAXParser.html

package info (click to toggle)
poco-doc 1.3.6-1.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 10,080 kB
  • sloc: makefile: 31
file content (196 lines) | stat: -rw-r--r-- 18,823 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Class Poco::XML::SAXParser</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="copyright" content="Copyright (c) 2009, Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="language" content="en"/>
<meta name="date" content="2009-11-24"/>
<meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<div class="header">
<h1 class="namespace"><a href="Poco.XML.html" class="namespace">Poco::XML</a></h1>
<h1 class="symbol">class SAXParser</h1>
</div>
<div class="body">
<p>
<b>Library:</b> XML<br />
<b>Package:</b> SAX<br />
<b>Header:</b> Poco/SAX/SAXParser.h</p>
<h2>Description</h2>
<div class="description">
<p>This class provides a SAX2 (Simple API for <a href="Poco.XML.html" title="namespace Poco::XML">XML</a>) interface to expat,  the <a href="Poco.XML.html" title="namespace Poco::XML">XML</a> parser toolkit. The following SAX2 features and properties are supported: </p>
<ul>
<li><a href="http://xml.org/sax/features/external-general-entities" target="_blank">http://xml.org/sax/features/external-general-entities</a> </li>
<li><a href="http://xml.org/sax/features/external-parameter-entities" target="_blank">http://xml.org/sax/features/external-parameter-entities</a> </li>
<li><a href="http://xml.org/sax/features/namespaces" target="_blank">http://xml.org/sax/features/namespaces</a> </li>
<li><a href="http://xml.org/sax/features/namespace-prefixes" target="_blank">http://xml.org/sax/features/namespace-prefixes</a> </li>
<li><a href="http://xml.org/sax/properties/lexical-handler" target="_blank">http://xml.org/sax/properties/lexical-handler</a> </li>
<li><a href="http://xml.org/sax/properties/declaration-handler" target="_blank">http://xml.org/sax/properties/declaration-handler</a> </li>
</ul>
<p>The following proprietary extensions are supported: </p>
<ul>
<li><a href="http://www.appinf.com/features/enable-partial-reads" target="_blank">http://www.appinf.com/features/enable-partial-reads</a> &mdash; see <a href="Poco.XML.ParserEngine.html#19658" title="Poco::XML::ParserEngine::setEnablePartialReads()">ParserEngine::setEnablePartialReads</a>() </li>
</ul>
</div>
<h2>Inheritance</h2>
<p><b>Direct Base Classes: </b><a href="Poco.XML.XMLReader.html" title="class Poco::XML::XMLReader">XMLReader</a></p>
<p><b>All Base Classes: </b><a href="Poco.XML.XMLReader.html" title="class Poco::XML::XMLReader">XMLReader</a></p>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.XML.SAXParser.html#19235" title="Poco::XML::SAXParser::addEncoding()">addEncoding</a>, <a href="Poco.XML.SAXParser.html#19246" title="Poco::XML::SAXParser::getContentHandler()">getContentHandler</a>, <a href="Poco.XML.SAXParser.html#19243" title="Poco::XML::SAXParser::getDTDHandler()">getDTDHandler</a>, <a href="Poco.XML.SAXParser.html#19234" title="Poco::XML::SAXParser::getEncoding()">getEncoding</a>, <a href="Poco.XML.SAXParser.html#19240" title="Poco::XML::SAXParser::getEntityResolver()">getEntityResolver</a>, <a href="Poco.XML.SAXParser.html#19249" title="Poco::XML::SAXParser::getErrorHandler()">getErrorHandler</a>, <a href="Poco.XML.SAXParser.html#19253" title="Poco::XML::SAXParser::getFeature()">getFeature</a>, <a href="Poco.XML.SAXParser.html#19261" title="Poco::XML::SAXParser::getProperty()">getProperty</a>, <a href="Poco.XML.SAXParser.html#19263" title="Poco::XML::SAXParser::parse()">parse</a>, <a href="Poco.XML.SAXParser.html#19267" title="Poco::XML::SAXParser::parseMemoryNP()">parseMemoryNP</a>, <a href="Poco.XML.SAXParser.html#19270" title="Poco::XML::SAXParser::parseString()">parseString</a>, <a href="Poco.XML.SAXParser.html#19244" title="Poco::XML::SAXParser::setContentHandler()">setContentHandler</a>, <a href="Poco.XML.SAXParser.html#19241" title="Poco::XML::SAXParser::setDTDHandler()">setDTDHandler</a>, <a href="Poco.XML.SAXParser.html#19232" title="Poco::XML::SAXParser::setEncoding()">setEncoding</a>, <a href="Poco.XML.SAXParser.html#19238" title="Poco::XML::SAXParser::setEntityResolver()">setEntityResolver</a>, <a href="Poco.XML.SAXParser.html#19247" title="Poco::XML::SAXParser::setErrorHandler()">setErrorHandler</a>, <a href="Poco.XML.SAXParser.html#19250" title="Poco::XML::SAXParser::setFeature()">setFeature</a>, <a href="Poco.XML.SAXParser.html#19255" title="Poco::XML::SAXParser::setProperty()">setProperty</a>, <a href="Poco.XML.SAXParser.html#19273" title="Poco::XML::SAXParser::setupParse()">setupParse</a></p>
<p><b>Inherited Functions: </b><a href="Poco.XML.XMLReader.html#19443" title="Poco::XML::XMLReader::getContentHandler()">getContentHandler</a>, <a href="Poco.XML.XMLReader.html#19440" title="Poco::XML::XMLReader::getDTDHandler()">getDTDHandler</a>, <a href="Poco.XML.XMLReader.html#19437" title="Poco::XML::XMLReader::getEntityResolver()">getEntityResolver</a>, <a href="Poco.XML.XMLReader.html#19446" title="Poco::XML::XMLReader::getErrorHandler()">getErrorHandler</a>, <a href="Poco.XML.XMLReader.html#19450" title="Poco::XML::XMLReader::getFeature()">getFeature</a>, <a href="Poco.XML.XMLReader.html#19458" title="Poco::XML::XMLReader::getProperty()">getProperty</a>, <a href="Poco.XML.XMLReader.html#19460" title="Poco::XML::XMLReader::parse()">parse</a>, <a href="Poco.XML.XMLReader.html#19464" title="Poco::XML::XMLReader::parseMemoryNP()">parseMemoryNP</a>, <a href="Poco.XML.XMLReader.html#19441" title="Poco::XML::XMLReader::setContentHandler()">setContentHandler</a>, <a href="Poco.XML.XMLReader.html#19438" title="Poco::XML::XMLReader::setDTDHandler()">setDTDHandler</a>, <a href="Poco.XML.XMLReader.html#19435" title="Poco::XML::XMLReader::setEntityResolver()">setEntityResolver</a>, <a href="Poco.XML.XMLReader.html#19444" title="Poco::XML::XMLReader::setErrorHandler()">setErrorHandler</a>, <a href="Poco.XML.XMLReader.html#19447" title="Poco::XML::XMLReader::setFeature()">setFeature</a>, <a href="Poco.XML.XMLReader.html#19455" title="Poco::XML::XMLReader::setProperty()">setProperty</a></p>
<h2>Constructors</h2>
<h3><a name="19228">SAXParser</a></h3>
<p class="decl"><a href="Poco.XML.SAXParser.html" title="class Poco::XML::SAXParser">SAXParser</a>();</p>
<div class="description">
<p>Creates an <a href="Poco.XML.SAXParser.html" title="class Poco::XML::SAXParser">SAXParser</a>. </p>
</div>
<h3><a name="19229">SAXParser</a></h3>
<p class="decl"><a href="Poco.XML.SAXParser.html" title="class Poco::XML::SAXParser">SAXParser</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; encoding<br />);</p>
<div class="description">
<p>Creates an <a href="Poco.XML.SAXParser.html" title="class Poco::XML::SAXParser">SAXParser</a> with the given encoding. </p>
</div>
<h2>Destructor</h2>
<h3><a name="19231">~SAXParser</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">~<a href="Poco.XML.SAXParser.html" title="class Poco::XML::SAXParser">SAXParser</a>();</p>
<div class="description">
<p>Destroys the <a href="Poco.XML.SAXParser.html" title="class Poco::XML::SAXParser">SAXParser</a>. </p>
</div>
<h2>Member Functions</h2>
<h3><a name="19235">addEncoding</a></h3>
<p class="decl">void addEncoding(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; name,<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.TextEncoding.html" title="class Poco::TextEncoding">Poco::TextEncoding</a> * pEncoding<br />);</p>
<div class="description">
<p>Adds an encoding to the parser. Does not take ownership of the pointer! <a href="Poco.XML.XMLReader.html" title="class Poco::XML::XMLReader">XMLReader</a> </p>
</div>
<h3><a name="19246">getContentHandler</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.XML.ContentHandler.html" title="class Poco::XML::ContentHandler">ContentHandler</a> * getContentHandler() const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19443" title="Poco::XML::XMLReader::getContentHandler()">Poco::XML::XMLReader::getContentHandler()</a></p></div>
<h3><a name="19243">getDTDHandler</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.XML.DTDHandler.html" title="class Poco::XML::DTDHandler">DTDHandler</a> * getDTDHandler() const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19440" title="Poco::XML::XMLReader::getDTDHandler()">Poco::XML::XMLReader::getDTDHandler()</a></p></div>
<h3><a name="19234">getEncoding</a></h3>
<p class="decl">const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; getEncoding() const;</p>
<div class="description">
<p>Returns the name of the encoding used by the parser if no encoding is specified in the <a href="Poco.XML.html" title="namespace Poco::XML">XML</a> document. </p>
</div>
<h3><a name="19240">getEntityResolver</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.XML.EntityResolver.html" title="class Poco::XML::EntityResolver">EntityResolver</a> * getEntityResolver() const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19437" title="Poco::XML::XMLReader::getEntityResolver()">Poco::XML::XMLReader::getEntityResolver()</a></p></div>
<h3><a name="19249">getErrorHandler</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl"><a href="Poco.XML.ErrorHandler.html" title="class Poco::XML::ErrorHandler">ErrorHandler</a> * getErrorHandler() const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19446" title="Poco::XML::XMLReader::getErrorHandler()">Poco::XML::XMLReader::getErrorHandler()</a></p></div>
<h3><a name="19253">getFeature</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">bool getFeature(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; featureId<br />) const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19450" title="Poco::XML::XMLReader::getFeature()">Poco::XML::XMLReader::getFeature()</a></p></div>
<h3><a name="19261">getProperty</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void * getProperty(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; propertyId<br />) const;</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19458" title="Poco::XML::XMLReader::getProperty()">Poco::XML::XMLReader::getProperty()</a></p></div>
<h3><a name="19263">parse</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void parse(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.InputSource.html" title="class Poco::XML::InputSource">InputSource</a> * pSource<br />);</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19460" title="Poco::XML::XMLReader::parse()">Poco::XML::XMLReader::parse()</a></p></div>
<h3><a name="19265">parse</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void parse(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; systemId<br />);</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19462" title="Poco::XML::XMLReader::parse()">Poco::XML::XMLReader::parse()</a></p></div>
<h3><a name="19267">parseMemoryNP</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void parseMemoryNP(<br />&nbsp;&nbsp;&nbsp;&nbsp;const char * xml,<br />&nbsp;&nbsp;&nbsp;&nbsp;std::size_t size<br />);</p>
<div class="description">
<p>Extensions </p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19464" title="Poco::XML::XMLReader::parseMemoryNP()">Poco::XML::XMLReader::parseMemoryNP()</a></p></div>
<h3><a name="19270">parseString</a></h3>
<p class="decl">void parseString(<br />&nbsp;&nbsp;&nbsp;&nbsp;const std::string &amp; xml<br />);</p>
<div class="description">
<p></p>
</div>
<h3><a name="19244">setContentHandler</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void setContentHandler(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.ContentHandler.html" title="class Poco::XML::ContentHandler">ContentHandler</a> * pContentHandler<br />);</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19441" title="Poco::XML::XMLReader::setContentHandler()">Poco::XML::XMLReader::setContentHandler()</a></p></div>
<h3><a name="19241">setDTDHandler</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void setDTDHandler(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.DTDHandler.html" title="class Poco::XML::DTDHandler">DTDHandler</a> * pDTDHandler<br />);</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19438" title="Poco::XML::XMLReader::setDTDHandler()">Poco::XML::XMLReader::setDTDHandler()</a></p></div>
<h3><a name="19232">setEncoding</a></h3>
<p class="decl">void setEncoding(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; encoding<br />);</p>
<div class="description">
<p>Sets the encoding used by the parser if no encoding is specified in the <a href="Poco.XML.html" title="namespace Poco::XML">XML</a> document. </p>
</div>
<h3><a name="19238">setEntityResolver</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void setEntityResolver(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.EntityResolver.html" title="class Poco::XML::EntityResolver">EntityResolver</a> * pResolver<br />);</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19435" title="Poco::XML::XMLReader::setEntityResolver()">Poco::XML::XMLReader::setEntityResolver()</a></p></div>
<h3><a name="19247">setErrorHandler</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void setErrorHandler(<br />&nbsp;&nbsp;&nbsp;&nbsp;<a href="Poco.XML.ErrorHandler.html" title="class Poco::XML::ErrorHandler">ErrorHandler</a> * pErrorHandler<br />);</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19444" title="Poco::XML::XMLReader::setErrorHandler()">Poco::XML::XMLReader::setErrorHandler()</a></p></div>
<h3><a name="19250">setFeature</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void setFeature(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; featureId,<br />&nbsp;&nbsp;&nbsp;&nbsp;bool state<br />);</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19447" title="Poco::XML::XMLReader::setFeature()">Poco::XML::XMLReader::setFeature()</a></p></div>
<h3><a name="19255">setProperty</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void setProperty(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; propertyId,<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; value<br />);</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19452" title="Poco::XML::XMLReader::setProperty()">Poco::XML::XMLReader::setProperty()</a></p></div>
<h3><a name="19258">setProperty</a> <img src="images/virtual.gif" alt="virtual" title="virtual" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void setProperty(<br />&nbsp;&nbsp;&nbsp;&nbsp;const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> &amp; propertyId,<br />&nbsp;&nbsp;&nbsp;&nbsp;void * value<br />);</p>
<div class="description">
<p></p>
</div>
<div class="description"><p><b>See also:</b> <a href="Poco.XML.XMLReader.html#19455" title="Poco::XML::XMLReader::setProperty()">Poco::XML::XMLReader::setProperty()</a></p></div>
<h3><a name="19273">setupParse</a> <img src="images/protected.gif" alt="protected" title="protected" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void setupParse();</p>
<div class="description">
<p></p>
</div>
<h2>Variables</h2>
<h3><a name="19272">FEATURE_PARTIAL_READS</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static const <a href="Poco.XML.html#19841" title="Poco::XML::XMLString">XMLString</a> <a href="Poco.XML.SAXParser.html#19272" title="Poco::XML::SAXParser::FEATURE_PARTIAL_READS">FEATURE_PARTIAL_READS</a>;</p>
<div class="description">
<p></p>
</div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright &copy; 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>

</div>
</body>
</html>