File: qxmlsimplereader.html

package info (click to toggle)
qt-embedded 2.3.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 68,608 kB
  • ctags: 45,998
  • sloc: cpp: 276,654; ansic: 71,987; makefile: 29,074; sh: 12,305; yacc: 2,465; python: 1,863; perl: 481; lex: 480; xml: 68; lisp: 15
file content (158 lines) | stat: -rw-r--r-- 11,200 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QXmlSimpleReader Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">

<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>

<h1 align=center>QXmlSimpleReader Class Reference<br><small>[ <a href="xml.html">XML module</a> ]</small></h1><br clear="all">
<p>
The QXmlSimpleReader class provides an implementation of a simple XML reader (i.e. parser).
<a href="#details">More...</a>
<p>
<code>#include &lt;<a href="qxml-h.html">qxml.h</a>&gt;</code>
<p>
Inherits <a href="qxmlreader.html">QXmlReader</a>.
<p><a href="qxmlsimplereader-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#29e38d"><b>QXmlSimpleReader</b></a>()</div>
<li><div class="fn">virtual<a href="#0e69eb"><b>~QXmlSimpleReader</b></a>()</div>
<li><div class="fn">virtualbool<a href="#fb4b2e"><b>feature</b></a>(constQString&amp;name, bool*ok=0)const</div>
<li><div class="fn">virtualvoid<a href="#1f7766"><b>setFeature</b></a>(constQString&amp;name, boolvalue)</div>
<li><div class="fn">virtualbool<a href="#70fb07"><b>hasFeature</b></a>(constQString&amp;name)const</div>
<li><div class="fn">virtualvoid*<a href="#282e9b"><b>property</b></a>(constQString&amp;name, bool*ok=0)const</div>
<li><div class="fn">virtualvoid<a href="#99c6cf"><b>setProperty</b></a>(constQString&amp;name, void*value)</div>
<li><div class="fn">virtualbool<a href="#9425e3"><b>hasProperty</b></a>(constQString&amp;name)const</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
The QXmlSimpleReader class provides an implementation of a simple XML reader (i.e. parser).
<p>
This XML reader is sufficient for simple parsing tasks. Here is a short list
of the properties of this reader:
<ul>
<li> well-formed parser
<li> does not parse any external entities
<li> can do namespace processing
</ul>
<p>For getting started see also the
<a href="xml-sax.html#quickStart">Quick start</a>
<p>Examples:
 <a href="xml-tagreader-tagreader-cpp.html#QXmlSimpleReader">xml/tagreader/tagreader.cpp</a>
 <a href="xml-tagreader-with-features-tagreader-cpp.html#QXmlSimpleReader">xml/tagreader-with-features/tagreader.cpp</a>

<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a href="qxmldtdhandler.html">QXmlDTDHandler</a>*<a name="93c7b5"></a>QXmlSimpleReader::DTDHandler()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qxmlreader.html#1ec1bf">QXmlReader.</a>
<h3 class="fn"><a name="29e38d"></a>QXmlSimpleReader::QXmlSimpleReader()</h3>
<p>Constructs a simple XML reader.
<h3 class="fn"><a name="0e69eb"></a>QXmlSimpleReader::~QXmlSimpleReader() <code>[virtual]</code></h3>
<p>Destroys a simple XML reader.
<h3 class="fn"><a href="qxmlcontenthandler.html">QXmlContentHandler</a>*<a name="26f011"></a>QXmlSimpleReader::contentHandler()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qxmlreader.html#7357d5">QXmlReader.</a>
<h3 class="fn"><a href="qxmldeclhandler.html">QXmlDeclHandler</a>*<a name="c2cdeb"></a>QXmlSimpleReader::declHandler()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qxmlreader.html#883489">QXmlReader.</a>
<h3 class="fn"><a href="qxmlentityresolver.html">QXmlEntityResolver</a>*<a name="69d28c"></a>QXmlSimpleReader::entityResolver()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qxmlreader.html#38d777">QXmlReader.</a>
<h3 class="fn"><a href="qxmlerrorhandler.html">QXmlErrorHandler</a>*<a name="4b60a5"></a>QXmlSimpleReader::errorHandler()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qxmlreader.html#6693d3">QXmlReader.</a>
<h3 class="fn">bool<a name="fb4b2e"></a>QXmlSimpleReader::feature(const<a href="qstring.html">QString</a>&amp;name, bool*ok=0)const <code>[virtual]</code></h3>
<p>Gets the state of a feature.
<p>See also  <a href="#1f7766">setFeature</a>() and <a href="#70fb07">hasFeature</a>().
<p>Reimplemented from <a href="qxmlreader.html#be21af">QXmlReader.</a>
<h3 class="fn">bool<a name="70fb07"></a>QXmlSimpleReader::hasFeature(const<a href="qstring.html">QString</a>&amp;name)const <code>[virtual]</code></h3>
<p>Returns TRUE if the class has a feature named <em>feature,</em> otherwise FALSE.
<p>See also  <a href="#1f7766">setFeature</a>() and <a href="#fb4b2e">feature</a>().
<p>Reimplemented from <a href="qxmlreader.html#2e0d44">QXmlReader.</a>
<h3 class="fn">bool<a name="9425e3"></a>QXmlSimpleReader::hasProperty(const<a href="qstring.html">QString</a>&amp;)const <code>[virtual]</code></h3>
<p>Returns FALSE since this class does not support any properties.
<p>Reimplemented from <a href="qxmlreader.html#0dfd4d">QXmlReader.</a>
<h3 class="fn"><a href="qxmllexicalhandler.html">QXmlLexicalHandler</a>*<a name="bf85a3"></a>QXmlSimpleReader::lexicalHandler()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qxmlreader.html#486af9">QXmlReader.</a>
<h3 class="fn">bool<a name="2d6b2a"></a>QXmlSimpleReader::parse(const<a href="qxmlinputsource.html">QXmlInputSource</a>&amp;input) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Examples:
 <a href="xml-tagreader-tagreader-cpp.html#parse">xml/tagreader/tagreader.cpp</a>
 <a href="xml-tagreader-with-features-tagreader-cpp.html#parse">xml/tagreader-with-features/tagreader.cpp</a>
<p>Reimplemented from <a href="qxmlreader.html#f618e6">QXmlReader.</a>
<h3 class="fn">void*<a name="282e9b"></a>QXmlSimpleReader::property(const<a href="qstring.html">QString</a>&amp;, bool*ok=0)const <code>[virtual]</code></h3>
<p>Returns 0 since this class does not support any properties.
<p>Reimplemented from <a href="qxmlreader.html#67bf3a">QXmlReader.</a>
<h3 class="fn">void<a name="3ce23b"></a>QXmlSimpleReader::setContentHandler(<a href="qxmlcontenthandler.html">QXmlContentHandler</a>*handler) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Examples:
 <a href="xml-tagreader-tagreader-cpp.html#setContentHandler">xml/tagreader/tagreader.cpp</a>
 <a href="xml-tagreader-with-features-tagreader-cpp.html#setContentHandler">xml/tagreader-with-features/tagreader.cpp</a>
<p>Reimplemented from <a href="qxmlreader.html#a86df9">QXmlReader.</a>
<h3 class="fn">void<a name="1ba005"></a>QXmlSimpleReader::setDTDHandler(<a href="qxmldtdhandler.html">QXmlDTDHandler</a>*handler) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qxmlreader.html#174b4a">QXmlReader.</a>
<h3 class="fn">void<a name="1bb383"></a>QXmlSimpleReader::setDeclHandler(<a href="qxmldeclhandler.html">QXmlDeclHandler</a>*handler) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qxmlreader.html#1b30d5">QXmlReader.</a>
<h3 class="fn">void<a name="d7f092"></a>QXmlSimpleReader::setEntityResolver(<a href="qxmlentityresolver.html">QXmlEntityResolver</a>*handler) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qxmlreader.html#4a0cf6">QXmlReader.</a>
<h3 class="fn">void<a name="991a8d"></a>QXmlSimpleReader::setErrorHandler(<a href="qxmlerrorhandler.html">QXmlErrorHandler</a>*handler) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qxmlreader.html#ea1a35">QXmlReader.</a>
<h3 class="fn">void<a name="1f7766"></a>QXmlSimpleReader::setFeature(const<a href="qstring.html">QString</a>&amp;name, boolvalue) <code>[virtual]</code></h3>
<p>Sets the state of a feature.
<p>Supported features are:
<ul>
<li> http://xml.org/sax/features/namespaces:
if this feature is TRUE, namespace processing is performed
<li> http://xml.org/sax/features/namespace-prefixes:
if this feature is TRUE, the the original prefixed names and attributes
used for namespace declarations are reported
<li> http://trolltech.com/xml/features/report-whitespace-only-CharData:
if this feature is TRUE, CharData that consists only of whitespace (and
no other characters) is not reported via
<a href="qxmlcontenthandler.html#c63930">QXmlContentHandler::characters</a>()
</ul>
<p>See also  <a href="#fb4b2e">feature</a>() and <a href="#70fb07">hasFeature</a>().
<p>Examples:
 <a href="xml-tagreader-with-features-tagreader-cpp.html#setFeature">xml/tagreader-with-features/tagreader.cpp</a>
<p>Reimplemented from <a href="qxmlreader.html#57cdb9">QXmlReader.</a>
<h3 class="fn">void<a name="435e36"></a>QXmlSimpleReader::setLexicalHandler(<a href="qxmllexicalhandler.html">QXmlLexicalHandler</a>*handler) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qxmlreader.html#6c0ebe">QXmlReader.</a>
<h3 class="fn">void<a name="99c6cf"></a>QXmlSimpleReader::setProperty(const<a href="qstring.html">QString</a>&amp;, void*) <code>[virtual]</code></h3>
<p>Does nothing since this class does not support any properties.
<p>Reimplemented from <a href="qxmlreader.html#6970da">QXmlReader.</a>
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright &copy; 1995-2001
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright  2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>