source: trunk/doc/html/qxmldeclhandler.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 7.2 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/xml/qxml.cpp:1801 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QXmlDeclHandler Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QXmlDeclHandler Class Reference<br><small>[<a href="xml.html">XML module</a>]</small></h1>
33
34<p>The QXmlDeclHandler class provides an interface to report declaration
35content of XML data.
36<a href="#details">More...</a>
37<p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when Qt is built with thread support.</p>
38<p><tt>#include &lt;<a href="qxml-h.html">qxml.h</a>&gt;</tt>
39<p>Inherited by <a href="qxmldefaulthandler.html">QXmlDefaultHandler</a>.
40<p><a href="qxmldeclhandler-members.html">List of all member functions.</a>
41<h2>Public Members</h2>
42<ul>
43<li class=fn>virtual bool <a href="#attributeDecl"><b>attributeDecl</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;eName, const&nbsp;QString&nbsp;&amp;&nbsp;aName, const&nbsp;QString&nbsp;&amp;&nbsp;type, const&nbsp;QString&nbsp;&amp;&nbsp;valueDefault, const&nbsp;QString&nbsp;&amp;&nbsp;value ) = 0</li>
44<li class=fn>virtual bool <a href="#internalEntityDecl"><b>internalEntityDecl</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;name, const&nbsp;QString&nbsp;&amp;&nbsp;value ) = 0</li>
45<li class=fn>virtual bool <a href="#externalEntityDecl"><b>externalEntityDecl</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;name, const&nbsp;QString&nbsp;&amp;&nbsp;publicId, const&nbsp;QString&nbsp;&amp;&nbsp;systemId ) = 0</li>
46<li class=fn>virtual QString <a href="#errorString"><b>errorString</b></a> () = 0</li>
47</ul>
48<hr><a name="details"></a><h2>Detailed Description</h2>
49
50
51
52The QXmlDeclHandler class provides an interface to report declaration
53content of XML data.
54
55<p>
56
57<p> You can set the declaration handler with
58<a href="qxmlreader.html#setDeclHandler">QXmlReader::setDeclHandler</a>().
59<p> This interface is based on the SAX2 extension DeclHandler.
60<p> The interface provides <a href="#attributeDecl">attributeDecl</a>(), <a href="#internalEntityDecl">internalEntityDecl</a>() and
61<a href="#externalEntityDecl">externalEntityDecl</a>() functions.
62<p> See also the <a href="xml.html#sax2Intro">Introduction to SAX2</a>.
63<p> <p>See also <a href="qxmldtdhandler.html">QXmlDTDHandler</a>, <a href="qxmlcontenthandler.html">QXmlContentHandler</a>, <a href="qxmlentityresolver.html">QXmlEntityResolver</a>, <a href="qxmlerrorhandler.html">QXmlErrorHandler</a>, <a href="qxmllexicalhandler.html">QXmlLexicalHandler</a>, and <a href="xml-tools.html">XML</a>.
64
65<hr><h2>Member Function Documentation</h2>
66<h3 class=fn>bool <a name="attributeDecl"></a>QXmlDeclHandler::attributeDecl ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;eName, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;aName, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;type, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;valueDefault, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;value )<tt> [pure virtual]</tt>
67</h3>
68
69<p> The reader calls this function to report an attribute type
70declaration. Only the effective (first) declaration for an
71attribute is reported.
72<p> The reader passes the name of the associated element in <em>eName</em>
73and the name of the attribute in <em>aName</em>. It passes a string that
74represents the attribute type in <em>type</em> and a string that
75represents the attribute default in <em>valueDefault</em>. This string
76is one of "#IMPLIED", "#REQUIRED", "#FIXED" or <a href="qstring.html#QString-null">QString::null</a> (if
77none of the others applies). The reader passes the attribute's
78default value in <em>value</em>. If no default value is specified in the
79XML file, <em>value</em> is QString::null.
80<p> If this function returns FALSE the reader stops parsing and
81reports an error. The reader uses the function <a href="#errorString">errorString</a>() to
82get the error message.
83
84<h3 class=fn><a href="qstring.html">QString</a> <a name="errorString"></a>QXmlDeclHandler::errorString ()<tt> [pure virtual]</tt>
85</h3>
86
87<p> The reader calls this function to get an error string if any of
88the handler functions returns FALSE.
89
90<h3 class=fn>bool <a name="externalEntityDecl"></a>QXmlDeclHandler::externalEntityDecl ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;name, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;publicId, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;systemId )<tt> [pure virtual]</tt>
91</h3>
92
93<p> The reader calls this function to report a parsed external entity
94declaration. Only the effective (first) declaration for each
95entity is reported.
96<p> The reader passes the name of the entity in <em>name</em>, the public
97identifier in <em>publicId</em> and the system identifier in <em>systemId</em>. If there is no public identifier specified, it passes
98<a href="qstring.html#QString-null">QString::null</a> in <em>publicId</em>.
99<p> If this function returns FALSE the reader stops parsing and
100reports an error. The reader uses the function <a href="#errorString">errorString</a>() to
101get the error message.
102
103<h3 class=fn>bool <a name="internalEntityDecl"></a>QXmlDeclHandler::internalEntityDecl ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;name, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;value )<tt> [pure virtual]</tt>
104</h3>
105
106<p> The reader calls this function to report an internal entity
107declaration. Only the effective (first) declaration is reported.
108<p> The reader passes the name of the entity in <em>name</em> and the value
109of the entity in <em>value</em>.
110<p> If this function returns FALSE the reader stops parsing and
111reports an error. The reader uses the function <a href="#errorString">errorString</a>() to
112get the error message.
113
114<!-- eof -->
115<hr><p>
116This file is part of the <a href="index.html">Qt toolkit</a>.
117Copyright &copy; 1995-2007
118<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
119<table width=100% cellspacing=0 border=0><tr>
120<td>Copyright &copy; 2007
121<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
122<td align=right><div align=right>Qt 3.3.8</div>
123</table></div></address></body>
124</html>
Note: See TracBrowser for help on using the repository browser.