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: QDomImplementation 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">QDomImplementation Class Reference</h1>
21
<p>The QDomImplementation class provides information about the features of the DOM implementation. <a href="#details">More...</a></p>
22
<pre>#include <QDomImplementation></pre><p>Part of the <a href="qtxml.html">QtXml</a> module.</p>
23
<p><b>Note:</b> All the functions in this class are <a href="threads.html#reentrant">reentrant</a>.</p>
25
<li><a href="qdomimplementation-members.html">List of all members, including inherited members</a></li>
27
<a name="public-functions"></a>
28
<h3>Public Functions</h3>
30
<li><div class="fn"/><b><a href="qdomimplementation.html#QDomImplementation">QDomImplementation</a></b> ()</li>
31
<li><div class="fn"/><b><a href="qdomimplementation.html#QDomImplementation-2">QDomImplementation</a></b> ( const QDomImplementation & <i>x</i> )</li>
32
<li><div class="fn"/><b><a href="qdomimplementation.html#dtor.QDomImplementation">~QDomImplementation</a></b> ()</li>
33
<li><div class="fn"/>QDomDocument <b><a href="qdomimplementation.html#createDocument">createDocument</a></b> ( const QString & <i>nsURI</i>, const QString & <i>qName</i>, const QDomDocumentType & <i>doctype</i> )</li>
34
<li><div class="fn"/>QDomDocumentType <b><a href="qdomimplementation.html#createDocumentType">createDocumentType</a></b> ( const QString & <i>qName</i>, const QString & <i>publicId</i>, const QString & <i>systemId</i> )</li>
35
<li><div class="fn"/>bool <b><a href="qdomimplementation.html#hasFeature">hasFeature</a></b> ( const QString & <i>feature</i>, const QString & <i>version</i> ) const</li>
36
<li><div class="fn"/>bool <b><a href="qdomimplementation.html#isNull">isNull</a></b> ()</li>
37
<li><div class="fn"/>bool <b><a href="qdomimplementation.html#operator-not-eq">operator!=</a></b> ( const QDomImplementation & <i>x</i> ) const</li>
38
<li><div class="fn"/>QDomImplementation & <b><a href="qdomimplementation.html#operator-eq">operator=</a></b> ( const QDomImplementation & <i>x</i> )</li>
39
<li><div class="fn"/>bool <b><a href="qdomimplementation.html#operator-eq-eq">operator==</a></b> ( const QDomImplementation & <i>x</i> ) const</li>
41
<a name="details"></a>
43
<h2>Detailed Description</h2>
44
<p>The QDomImplementation class provides information about the features of the DOM implementation.</p>
45
<p>This class describes the features that are supported by the DOM implementation. Currently the XML subset of DOM Level 1 and DOM Level 2 Core are supported.</p>
46
<p>Normally you will use the function <a href="qdomdocument.html#implementation">QDomDocument::implementation</a>() to get the implementation object.</p>
47
<p>You can create a new document type with <a href="qdomimplementation.html#createDocumentType">createDocumentType</a>() and a new document with <a href="qdomimplementation.html#createDocument">createDocument</a>().</p>
48
<p>For further information about the Document Object Model see <a href="http://www.w3.org/TR/REC-DOM-Level-1/">Level 1</a> and <a href="http://www.w3.org/TR/DOM-Level-2-Core/">Level 2 Core</a>. For a more general introduction of the DOM implementation see the <a href="qdomdocument.html">QDomDocument</a> documentation.</p>
49
<p>See also <a href="qdomimplementation.html#hasFeature">hasFeature</a>().</p>
51
<h2>Member Function Documentation</h2>
52
<h3 class="fn"><a name="QDomImplementation"></a>QDomImplementation::QDomImplementation ()</h3>
53
<p>Constructs a <a href="qdomimplementation.html">QDomImplementation</a> object.</p>
54
<h3 class="fn"><a name="QDomImplementation-2"></a>QDomImplementation::QDomImplementation ( const QDomImplementation & <i>x</i> )</h3>
55
<p>Constructs a copy of <i>x</i>.</p>
56
<h3 class="fn"><a name="dtor.QDomImplementation"></a>QDomImplementation::~QDomImplementation ()</h3>
57
<p>Destroys the object and frees its resources.</p>
58
<h3 class="fn"><a name="createDocument"></a><a href="qdomdocument.html">QDomDocument</a> QDomImplementation::createDocument ( const <a href="qstring.html">QString</a> & <i>nsURI</i>, const <a href="qstring.html">QString</a> & <i>qName</i>, const <a href="qdomdocumenttype.html">QDomDocumentType</a> & <i>doctype</i> )</h3>
59
<p>Creates a DOM document with the document type <i>doctype</i>. This function also adds a root element node with the qualified name <i>qName</i> and the namespace URI <i>nsURI</i>.</p>
60
<h3 class="fn"><a name="createDocumentType"></a><a href="qdomdocumenttype.html">QDomDocumentType</a> QDomImplementation::createDocumentType ( const <a href="qstring.html">QString</a> & <i>qName</i>, const <a href="qstring.html">QString</a> & <i>publicId</i>, const <a href="qstring.html">QString</a> & <i>systemId</i> )</h3>
61
<p>Creates a document type node for the name <i>qName</i>.</p>
62
<p><i>publicId</i> specifies the public identifier of the external subset. If you specify an empty string (QString()) as the <i>publicId</i>, this means that the document type has no public identifier.</p>
63
<p><i>systemId</i> specifies the system identifier of the external subset. If you specify an empty string as the <i>systemId</i>, this means that the document type has no system identifier.</p>
64
<p>Since you cannot have a public identifier without a system identifier, the public identifier is set to an empty string if there is no system identifier.</p>
65
<p>DOM level 2 does not support any other document type declaration features.</p>
66
<p>The only way you can use a document type that was created this way, is in combination with the <a href="qdomimplementation.html#createDocument">createDocument</a>() function to create a <a href="qdomdocument.html">QDomDocument</a> with this document type.</p>
67
<p>See also <a href="qdomimplementation.html#createDocument">createDocument</a>().</p>
68
<h3 class="fn"><a name="hasFeature"></a>bool QDomImplementation::hasFeature ( const <a href="qstring.html">QString</a> & <i>feature</i>, const <a href="qstring.html">QString</a> & <i>version</i> ) const</h3>
69
<p>The function returns true if QDom implements the requested <i>version</i> of a <i>feature</i>; otherwise returns false.</p>
70
<p>The currently supported features and their versions:</p>
71
<table align="center" cellpadding="2" cellspacing="1" border="0">
72
<tr valign="top" bgcolor="#a2c511"><th>Feature</th><th>Version</th></tr>
73
<tr valign="top" bgcolor="#f0f0f0"><td>XML</td><td>1.0</td></tr>
75
<h3 class="fn"><a name="isNull"></a>bool QDomImplementation::isNull ()</h3>
76
<p>Returns false if the object was created by <a href="qdomdocument.html#implementation">QDomDocument::implementation</a>(); otherwise returns true.</p>
77
<h3 class="fn"><a name="operator-not-eq"></a>bool QDomImplementation::operator!= ( const QDomImplementation & <i>x</i> ) const</h3>
78
<p>Returns true if <i>x</i> and this DOM implementation object were created from different QDomDocuments; otherwise returns false.</p>
79
<h3 class="fn"><a name="operator-eq"></a>QDomImplementation & QDomImplementation::operator= ( const QDomImplementation & <i>x</i> )</h3>
80
<p>Assigns <i>x</i> to this DOM implementation.</p>
81
<h3 class="fn"><a name="operator-eq-eq"></a>bool QDomImplementation::operator== ( const QDomImplementation & <i>x</i> ) const</h3>
82
<p>Returns true if <i>x</i> and this DOM implementation object were created from the same <a href="qdomdocument.html">QDomDocument</a>; otherwise returns false.</p>
83
<p /><address><hr /><div align="center">
84
<table width="100%" cellspacing="0" border="0"><tr class="address">
85
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
86
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
87
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
88
</tr></table></div></address></body>