<?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"> <!-- qdom.cpp --> <head> <title>Qt 4.6: QDomDocumentType Class Reference</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <a name="//apple_ref/cpp/cl//QDomDocumentType"></a> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" 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="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QDomDocumentType Class Reference<br /><span class="small-subtitle">[<a href="qtxml.html">QtXml</a> module]</span> </h1> <p>The QDomDocumentType class is the representation of the DTD in the document tree. <a href="#details">More...</a></p> <pre> #include <QDomDocumentType></pre><p><b>This class is not part of the Qt GUI Framework Edition.</b></p> <p>Inherits <a href="qdomnode.html">QDomNode</a>.</p> <p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p> <ul> <li><a href="qdomdocumenttype-members.html">List of all members, including inherited members</a></li> </ul> <hr /> <a name="public-functions"></a> <h2>Public Functions</h2> <table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumenttype.html#QDomDocumentType">QDomDocumentType</a></b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumenttype.html#QDomDocumentType-2">QDomDocumentType</a></b> ( const QDomDocumentType & <i>n</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QDomNamedNodeMap </td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumenttype.html#entities">entities</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumenttype.html#internalSubset">internalSubset</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumenttype.html#name">name</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QDomNode::NodeType </td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumenttype.html#nodeType">nodeType</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QDomNamedNodeMap </td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumenttype.html#notations">notations</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumenttype.html#publicId">publicId</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumenttype.html#systemId">systemId</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QDomDocumentType & </td><td class="memItemRight" valign="bottom"><b><a href="qdomdocumenttype.html#operator-eq">operator=</a></b> ( const QDomDocumentType & <i>n</i> )</td></tr> </table> <ul> <li><div bar="2" class="fn"></div>66 public functions inherited from <a href="qdomnode.html#public-functions">QDomNode</a></li> </ul> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QDomDocumentType class is the representation of the DTD in the document tree.</p> <p>The QDomDocumentType class allows read-only access to some of the data structures in the DTD: it can return a map of all <a href="qdomdocumenttype.html#entities">entities</a>() and <a href="qdomdocumenttype.html#notations">notations</a>(). In addition the function <a href="qdomdocumenttype.html#name">name</a>() returns the name of the document type as specified in the &lt;!DOCTYPE name&gt; tag. This class also provides the <a href="qdomdocumenttype.html#publicId">publicId</a>(), <a href="qdomdocumenttype.html#systemId">systemId</a>() and <a href="qdomdocumenttype.html#internalSubset">internalSubset</a>() functions.</p> <p>See also <a href="qdomdocument.html">QDomDocument</a>.</p> <hr /> <h2>Member Function Documentation</h2> <a name="//apple_ref/cpp/instm/QDomDocumentType/QDomDocumentType"></a> <h3 class="fn"><a name="QDomDocumentType"></a>QDomDocumentType::QDomDocumentType ()</h3> <p>Creates an empty <a href="qdomdocumenttype.html">QDomDocumentType</a> object.</p> <h3 class="fn"><a name="QDomDocumentType-2"></a>QDomDocumentType::QDomDocumentType ( const QDomDocumentType & <i>n</i> )</h3> <p>Constructs a copy of <i>n</i>.</p> <p>The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use <a href="qdomnode.html#cloneNode">cloneNode</a>().</p> <a name="//apple_ref/cpp/instm/QDomDocumentType/entities"></a> <h3 class="fn"><a name="entities"></a><a href="qdomnamednodemap.html">QDomNamedNodeMap</a> QDomDocumentType::entities () const</h3> <p>Returns a map of all entities described in the DTD.</p> <a name="//apple_ref/cpp/instm/QDomDocumentType/internalSubset"></a> <h3 class="fn"><a name="internalSubset"></a><a href="qstring.html">QString</a> QDomDocumentType::internalSubset () const</h3> <p>Returns the internal subset of the document type or an empty string if there is no internal subset.</p> <p>See also <a href="qdomdocumenttype.html#publicId">publicId</a>() and <a href="qdomdocumenttype.html#systemId">systemId</a>().</p> <a name="//apple_ref/cpp/instm/QDomDocumentType/name"></a> <h3 class="fn"><a name="name"></a><a href="qstring.html">QString</a> QDomDocumentType::name () const</h3> <p>Returns the name of the document type as specified in the &lt;!DOCTYPE name&gt; tag.</p> <p>See also <a href="qdomnode.html#nodeName">nodeName</a>().</p> <a name="//apple_ref/cpp/instm/QDomDocumentType/nodeType"></a> <h3 class="fn"><a name="nodeType"></a><a href="qdomnode.html#NodeType-enum">QDomNode::NodeType</a> QDomDocumentType::nodeType () const</h3> <p>Returns <tt>DocumentTypeNode</tt>.</p> <p>See also <a href="qdomnode.html#isDocumentType">isDocumentType</a>() and <a href="qdomnode.html#toDocumentType">QDomNode::toDocumentType</a>().</p> <a name="//apple_ref/cpp/instm/QDomDocumentType/notations"></a> <h3 class="fn"><a name="notations"></a><a href="qdomnamednodemap.html">QDomNamedNodeMap</a> QDomDocumentType::notations () const</h3> <p>Returns a map of all notations described in the DTD.</p> <a name="//apple_ref/cpp/instm/QDomDocumentType/publicId"></a> <h3 class="fn"><a name="publicId"></a><a href="qstring.html">QString</a> QDomDocumentType::publicId () const</h3> <p>Returns the public identifier of the external DTD subset or an empty string if there is no public identifier.</p> <p>See also <a href="qdomdocumenttype.html#systemId">systemId</a>(), <a href="qdomdocumenttype.html#internalSubset">internalSubset</a>(), and <a href="qdomimplementation.html#createDocumentType">QDomImplementation::createDocumentType</a>().</p> <a name="//apple_ref/cpp/instm/QDomDocumentType/systemId"></a> <h3 class="fn"><a name="systemId"></a><a href="qstring.html">QString</a> QDomDocumentType::systemId () const</h3> <p>Returns the system identifier of the external DTD subset or an empty string if there is no system identifier.</p> <p>See also <a href="qdomdocumenttype.html#publicId">publicId</a>(), <a href="qdomdocumenttype.html#internalSubset">internalSubset</a>(), and <a href="qdomimplementation.html#createDocumentType">QDomImplementation::createDocumentType</a>().</p> <a name="//apple_ref/cpp/instm/QDomDocumentType/operator="></a> <h3 class="fn"><a name="operator-eq"></a>QDomDocumentType & QDomDocumentType::operator= ( const QDomDocumentType & <i>n</i> )</h3> <p>Assigns <i>n</i> to this document type.</p> <p>The data of the copy is shared (shallow copy): modifying one node will also change the other. If you want to make a deep copy, use <a href="qdomnode.html#cloneNode">cloneNode</a>().</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="40%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td> <td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="40%" align="right"><div align="right">Qt 4.6.3</div></td> </tr></table></div></address></body> </html>