1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/xml/qdom.cpp -->
7
<title>Qt 4.0: QDomDocumentType Class Reference</title>
8
<style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
9
a:link { color: #004faf; text-decoration: none }
10
a:visited { color: #672967; text-decoration: none }
11
td.postheader { font-family: sans-serif }
12
tr.address { font-family: sans-serif }
13
body { background: #ffffff; color: black; }</style>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
19
<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="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QDomDocumentType Class Reference</h1>
21
<p>The QDomDocumentType class is the representation of the DTD in the document tree. <a href="#details">More...</a></p>
22
<pre>#include <QDomDocumentType></pre><p>Part of the <a href="qtxml.html">QtXml</a> module.</p>
23
<p>Inherits <a href="qdomnode.html">QDomNode</a>.</p>
24
<p><b>Note:</b> All the functions in this class are <a href="threads.html#reentrant">reentrant</a>.</p>
26
<li><a href="qdomdocumenttype-members.html">List of all members, including inherited members</a></li>
28
<a name="public-functions"></a>
29
<h3>Public Functions</h3>
31
<li><div class="fn"/><b><a href="qdomdocumenttype.html#QDomDocumentType">QDomDocumentType</a></b> ()</li>
32
<li><div class="fn"/><b><a href="qdomdocumenttype.html#QDomDocumentType-2">QDomDocumentType</a></b> ( const QDomDocumentType & <i>n</i> )</li>
33
<li><div class="fn"/>QDomNamedNodeMap <b><a href="qdomdocumenttype.html#entities">entities</a></b> () const</li>
34
<li><div class="fn"/>QString <b><a href="qdomdocumenttype.html#internalSubset">internalSubset</a></b> () const</li>
35
<li><div class="fn"/>QString <b><a href="qdomdocumenttype.html#name">name</a></b> () const</li>
36
<li><div class="fn"/>QDomNode::NodeType <b><a href="qdomdocumenttype.html#nodeType">nodeType</a></b> () const</li>
37
<li><div class="fn"/>QDomNamedNodeMap <b><a href="qdomdocumenttype.html#notations">notations</a></b> () const</li>
38
<li><div class="fn"/>QString <b><a href="qdomdocumenttype.html#publicId">publicId</a></b> () const</li>
39
<li><div class="fn"/>QString <b><a href="qdomdocumenttype.html#systemId">systemId</a></b> () const</li>
40
<li><div class="fn"/>QDomDocumentType & <b><a href="qdomdocumenttype.html#operator-eq">operator=</a></b> ( const QDomDocumentType & <i>n</i> )</li>
43
<li><div class="fn"/>63 public functions inherited from <a href="qdomnode.html#public-functions">QDomNode</a></li>
45
<a name="details"></a>
47
<h2>Detailed Description</h2>
48
<p>The QDomDocumentType class is the representation of the DTD in the document tree.</p>
49
<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>
50
<p>See also <a href="qdomdocument.html">QDomDocument</a>.</p>
52
<h2>Member Function Documentation</h2>
53
<h3 class="fn"><a name="QDomDocumentType"></a>QDomDocumentType::QDomDocumentType ()</h3>
54
<p>Creates an empty <a href="qdomdocumenttype.html">QDomDocumentType</a> object.</p>
55
<h3 class="fn"><a name="QDomDocumentType-2"></a>QDomDocumentType::QDomDocumentType ( const QDomDocumentType & <i>n</i> )</h3>
56
<p>Constructs a copy of <i>n</i>.</p>
57
<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>
58
<h3 class="fn"><a name="entities"></a><a href="qdomnamednodemap.html">QDomNamedNodeMap</a> QDomDocumentType::entities () const</h3>
59
<p>Returns a map of all entities described in the DTD.</p>
60
<h3 class="fn"><a name="internalSubset"></a><a href="qstring.html">QString</a> QDomDocumentType::internalSubset () const</h3>
61
<p>Returns the internal subset of the document type or an empty string if there is no internal subset.</p>
62
<p>See also <a href="qdomdocumenttype.html#publicId">publicId</a>() and <a href="qdomdocumenttype.html#systemId">systemId</a>().</p>
63
<h3 class="fn"><a name="name"></a><a href="qstring.html">QString</a> QDomDocumentType::name () const</h3>
64
<p>Returns the name of the document type as specified in the &lt;!DOCTYPE name&gt; tag.</p>
65
<p>See also <a href="qdomnode.html#nodeName">nodeName</a>().</p>
66
<h3 class="fn"><a name="nodeType"></a><a href="qdomnode.html#NodeType-enum">QDomNode::NodeType</a> QDomDocumentType::nodeType () const</h3>
67
<p>Returns <tt>DocumentTypeNode</tt>.</p>
68
<p>See also <a href="qdomnode.html#isDocumentType">isDocumentType</a>() and <a href="qdomnode.html#toDocumentType">QDomNode::toDocumentType</a>().</p>
69
<h3 class="fn"><a name="notations"></a><a href="qdomnamednodemap.html">QDomNamedNodeMap</a> QDomDocumentType::notations () const</h3>
70
<p>Returns a map of all notations described in the DTD.</p>
71
<h3 class="fn"><a name="publicId"></a><a href="qstring.html">QString</a> QDomDocumentType::publicId () const</h3>
72
<p>Returns the public identifier of the external DTD subset or an empty string if there is no public identifier.</p>
73
<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>
74
<h3 class="fn"><a name="systemId"></a><a href="qstring.html">QString</a> QDomDocumentType::systemId () const</h3>
75
<p>Returns the system identifier of the external DTD subset or an empty string if there is no system identifier.</p>
76
<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>
77
<h3 class="fn"><a name="operator-eq"></a>QDomDocumentType & QDomDocumentType::operator= ( const QDomDocumentType & <i>n</i> )</h3>
78
<p>Assigns <i>n</i> to this document type.</p>
79
<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>
80
<p /><address><hr /><div align="center">
81
<table width="100%" cellspacing="0" border="0"><tr class="address">
82
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
83
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
84
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
85
</tr></table></div></address></body>