<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /tmp/qt-4.2.1-harald-1161357942206/qt-x11-opensource-src-4.2.1/src/xml/qxml.cpp --> <head> <title>Qt 4.2: QXmlDTDHandler Class Reference</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td> <td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">QXmlDTDHandler Class Reference<br /><sup><sup>[<a href="qtxml.html">QtXml</a> module]</sup></sup></h1> <p>The QXmlDTDHandler class provides an interface to report DTD content of XML data. <a href="#details">More...</a></p> <pre> #include <QXmlDTDHandler></pre><p>Inherited by <a href="qxmldefaulthandler.html">QXmlDefaultHandler</a>.</p> <p><b>Note:</b> All the functions in this class are <a href="threads.html#reentrant">reentrant</a>.</p> <ul> <li><a href="qxmldtdhandler-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-functions"></a> <h3>Public Functions</h3> <ul> <li><div class="fn"/>virtual <b><a href="qxmldtdhandler.html#dtor.QXmlDTDHandler">~QXmlDTDHandler</a></b> ()</li> <li><div class="fn"/>virtual QString <b><a href="qxmldtdhandler.html#errorString">errorString</a></b> () const = 0</li> <li><div class="fn"/>virtual bool <b><a href="qxmldtdhandler.html#notationDecl">notationDecl</a></b> ( const QString & <i>name</i>, const QString & <i>publicId</i>, const QString & <i>systemId</i> ) = 0</li> <li><div class="fn"/>virtual bool <b><a href="qxmldtdhandler.html#unparsedEntityDecl">unparsedEntityDecl</a></b> ( const QString & <i>name</i>, const QString & <i>publicId</i>, const QString & <i>systemId</i>, const QString & <i>notationName</i> ) = 0</li> </ul> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QXmlDTDHandler class provides an interface to report DTD content of XML data.</p> <p>If an application needs information about notations and unparsed entities, it can implement this interface and register an instance with <a href="qxmlreader.html#setDTDHandler">QXmlReader::setDTDHandler</a>().</p> <p>Note that this interface includes only those DTD events that the XML recommendation requires processors to report, i.e. notation and unparsed entity declarations using <a href="qxmldtdhandler.html#notationDecl">notationDecl</a>() and <a href="qxmldtdhandler.html#unparsedEntityDecl">unparsedEntityDecl</a>() respectively.</p> <p>See also <a href="qxmldeclhandler.html">QXmlDeclHandler</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="qtxml.html#introduction-to-sax2">Introduction to SAX2</a>.</p> <hr /> <h2>Member Function Documentation</h2> <h3 class="fn"><a name="dtor.QXmlDTDHandler"></a>QXmlDTDHandler::~QXmlDTDHandler () <tt> [virtual]</tt></h3> <p>Destroys the DTD handler.</p> <h3 class="fn"><a name="errorString"></a><a href="qstring.html">QString</a> QXmlDTDHandler::errorString () const <tt> [pure virtual]</tt></h3> <p>The reader calls this function to get an error string if any of the handler functions returns false.</p> <h3 class="fn"><a name="notationDecl"></a>bool QXmlDTDHandler::notationDecl ( const <a href="qstring.html">QString</a> & <i>name</i>, const <a href="qstring.html">QString</a> & <i>publicId</i>, const <a href="qstring.html">QString</a> & <i>systemId</i> ) <tt> [pure virtual]</tt></h3> <p>The reader calls this function when it has parsed a notation declaration.</p> <p>The argument <i>name</i> is the notation name, <i>publicId</i> is the notation's public identifier and <i>systemId</i> is the notation's system identifier.</p> <p>If this function returns false the reader stops parsing and reports an error. The reader uses the function <a href="qxmldtdhandler.html#errorString">errorString</a>() to get the error message.</p> <h3 class="fn"><a name="unparsedEntityDecl"></a>bool QXmlDTDHandler::unparsedEntityDecl ( const <a href="qstring.html">QString</a> & <i>name</i>, const <a href="qstring.html">QString</a> & <i>publicId</i>, const <a href="qstring.html">QString</a> & <i>systemId</i>, const <a href="qstring.html">QString</a> & <i>notationName</i> ) <tt> [pure virtual]</tt></h3> <p>The reader calls this function when it finds an unparsed entity declaration.</p> <p>The argument <i>name</i> is the unparsed entity's name, <i>publicId</i> is the entity's public identifier, <i>systemId</i> is the entity's system identifier and <i>notationName</i> is the name of the associated notation.</p> <p>If this function returns false the reader stops parsing and reports an error. The reader uses the function <a href="qxmldtdhandler.html#errorString">errorString</a>() to get the error message.</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="30%">Copyright © 2006 <a href="trolltech.html">Trolltech</a></td> <td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="30%" align="right"><div align="right">Qt 4.2.1</div></td> </tr></table></div></address></body> </html>