source: trunk/doc/html/qxmlentityresolver.html@ 190

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

reference documentation added

File size: 5.0 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:1596 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QXmlEntityResolver 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>QXmlEntityResolver Class Reference<br><small>[<a href="xml.html">XML module</a>]</small></h1>
33
34<p>The QXmlEntityResolver class provides an interface to
35resolve external entities contained in 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="qxmlentityresolver-members.html">List of all member functions.</a>
41<h2>Public Members</h2>
42<ul>
43<li class=fn>virtual bool <a href="#resolveEntity"><b>resolveEntity</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;publicId, const&nbsp;QString&nbsp;&amp;&nbsp;systemId, QXmlInputSource&nbsp;*&amp;&nbsp;ret ) = 0</li>
44<li class=fn>virtual QString <a href="#errorString"><b>errorString</b></a> () = 0</li>
45</ul>
46<hr><a name="details"></a><h2>Detailed Description</h2>
47
48
49
50The QXmlEntityResolver class provides an interface to
51resolve external entities contained in XML data.
52
53<p>
54
55<p> If an application needs to implement customized handling for
56external entities, it must implement this interface, i.e.
57<a href="#resolveEntity">resolveEntity</a>(), and register it with
58<a href="qxmlreader.html#setEntityResolver">QXmlReader::setEntityResolver</a>().
59<p> See also the <a href="xml.html#sax2Intro">Introduction to SAX2</a>.
60<p> <p>See also <a href="qxmldtdhandler.html">QXmlDTDHandler</a>, <a href="qxmldeclhandler.html">QXmlDeclHandler</a>, <a href="qxmlcontenthandler.html">QXmlContentHandler</a>, <a href="qxmlerrorhandler.html">QXmlErrorHandler</a>, <a href="qxmllexicalhandler.html">QXmlLexicalHandler</a>, and <a href="xml-tools.html">XML</a>.
61
62<hr><h2>Member Function Documentation</h2>
63<h3 class=fn><a href="qstring.html">QString</a> <a name="errorString"></a>QXmlEntityResolver::errorString ()<tt> [pure virtual]</tt>
64</h3>
65
66<p> The reader calls this function to get an error string if any of
67the handler functions returns FALSE.
68
69<h3 class=fn>bool <a name="resolveEntity"></a>QXmlEntityResolver::resolveEntity ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;publicId, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;systemId, <a href="qxmlinputsource.html">QXmlInputSource</a>&nbsp;*&amp;&nbsp;ret )<tt> [pure virtual]</tt>
70</h3>
71
72<p> The reader calls this function before it opens any external
73entity, except the top-level document entity. The application may
74request the reader to resolve the entity itself (<em>ret</em> is 0) or
75to use an entirely different input source (<em>ret</em> points to the
76input source).
77<p> The reader deletes the input source <em>ret</em> when it no longer needs
78it, so you should allocate it on the heap with <tt>new</tt>.
79<p> The argument <em>publicId</em> is the public identifier of the external
80entity, <em>systemId</em> is the system identifier of the external
81entity and <em>ret</em> is the return value of this function. If <em>ret</em>
82is 0 the reader should resolve the entity itself, if it is
83non-zero it must point to an input source which the reader uses
84instead.
85<p> If this function returns FALSE the reader stops parsing and
86reports an error. The reader uses the function <a href="#errorString">errorString</a>() to
87get the error message.
88
89<!-- eof -->
90<hr><p>
91This file is part of the <a href="index.html">Qt toolkit</a>.
92Copyright &copy; 1995-2007
93<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
94<table width=100% cellspacing=0 border=0><tr>
95<td>Copyright &copy; 2007
96<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
97<td align=right><div align=right>Qt 3.3.8</div>
98</table></div></address></body>
99</html>
Note: See TracBrowser for help on using the repository browser.