<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html><head><title>QXmlDTDHandler Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm } a:link { color: #004faf; text-decoration: none } a:visited { color: #672967; text-decoration: none } td.postheader { font-family: sans-serif } tr.address { font-family: sans-serif } body { background: #ffffff; color: black; } </style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></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="modules.html"><font color="#004faf">Modules</font></a></td></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> <p>Inherited by <a href="qxmldefaulthandler.html">QXmlDefaultHandler</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qxmldtdhandler.html#QXmlDTDHandler">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qxmldtdhandler.html#QXmlDTDHandler-2">__init__</a></b> (<i>self</i>, QXmlDTDHandler)</li><li><div class="fn" />QString <b><a href="qxmldtdhandler.html#errorString">errorString</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qxmldtdhandler.html#notationDecl">notationDecl</a></b> (<i>self</i>, QString <i>name</i>, QString <i>publicId</i>, QString <i>systemId</i>)</li><li><div class="fn" />bool <b><a href="qxmldtdhandler.html#unparsedEntityDecl">unparsedEntityDecl</a></b> (<i>self</i>, QString <i>name</i>, QString <i>publicId</i>, QString <i>systemId</i>, QString <i>notationName</i>)</li></ul><a name="details" /><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> <hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QXmlDTDHandler" />QXmlDTDHandler.__init__ (<i>self</i>)</h3><h3 class="fn"><a name="QXmlDTDHandler-2" />QXmlDTDHandler.__init__ (<i>self</i>, <a href="qxmldtdhandler.html">QXmlDTDHandler</a>)</h3><h3 class="fn"><a name="errorString" />QString QXmlDTDHandler.errorString (<i>self</i>)</h3><p>This method is abstract and should be reimplemented in any sub-class.</p><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" />bool QXmlDTDHandler.notationDecl (<i>self</i>, QString <i>name</i>, QString <i>publicId</i>, QString <i>systemId</i>)</h3><p>This method is abstract and should be reimplemented in any sub-class.</p><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" />bool QXmlDTDHandler.unparsedEntityDecl (<i>self</i>, QString <i>name</i>, QString <i>publicId</i>, QString <i>systemId</i>, QString <i>notationName</i>)</h3><p>This method is abstract and should be reimplemented in any sub-class.</p><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> <address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.10.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt 4.8.5</td></tr></table></div></address></body></html>