QDomImplementation(3qt)
π QDomImplementation(3qt) π
okay bestie, buckle up, we're reading the QDomImplementation page from the 3qt manual together and honestly? it's giving "quiet little class that runs the whole DOM show" π
β¨ NAME β¨
QDomImplementation β literally just the info desk about what features your DOM implementation has πΈ
β¨ SYNOPSIS β¨
first up, the big vibe announcement: all the functions in this class are reentrant when Qt is built with thread support π
(and yes, the page really does end that sentence with a stray </p>, we don't ask questions)
#include <qdom.h>
π Public Members π
here's the whole cast, no one gets left out:
QDomImplementation ()QDomImplementation ( const QDomImplementation & x )virtual ~QDomImplementation ()QDomImplementation & operator= ( const QDomImplementation & x )bool operator== ( const QDomImplementation & x ) constbool operator!= ( const QDomImplementation & x ) constvirtual bool hasFeature ( const QString & feature, const QString & version )virtual QDomDocumentType createDocumentType ( const QString & qName, const QString & publicId, const QString & systemId )virtual QDomDocument createDocument ( const QString & nsURI, const QString & qName, const QDomDocumentType & doctype )bool isNull ()
β¨ DESCRIPTION β¨
so QDomImplementation is the class that tells you what the DOM implementation can actually do. it's the "what's supported, bestie?" class π«Ά
it describes the features supported by the DOM implementation. right now, the XML subset of DOM Level 1 and DOM Level 2 Core are the ones on the guest list β
normally you don't build one yourself β you use QDomDocument::implementation() to get the implementation object. that's the main character move.
you can make a new document type with createDocumentType(), and a whole new document with createDocument() π
wanna go deeper? the Document Object Model lore lives at http://www.w3.org/TR/REC-DOM-Level-1/ and http://www.w3.org/TR/DOM-Level-2-Core/. and for a more general introduction to the DOM implementation, go read the QDomDocument documentation π
see also hasFeature() and XML π
β¨ MEMBER FUNCTION DOCUMENTATION β¨
πΈ QDomImplementation::QDomImplementation ()
constructs a QDomImplementation object. brand new, fresh out the box β¨
πΈ QDomImplementation::QDomImplementation ( const QDomImplementation & x )
constructs a copy of x. twin behavior, no cap π
πΈ QDomImplementation::~QDomImplementation () [virtual]
destroys the object and frees its resources. it's done, it's released, it's at peace π¦
πΈ QDomDocument QDomImplementation::createDocument ( const QString & nsURI, const QString & qName, const QDomDocumentType & doctype ) [virtual]
creates a DOM document with the document type doctype. this function also adds a root element node with the qualified name qName and the namespace URI nsURI π
πΈ QDomDocumentType QDomImplementation::createDocumentType ( const QString & qName, const QString & publicId, const QString & systemId ) [virtual]
creates a document type node for the name qName π
publicId specifies the public identifier of the external subset. if you pass QString::null as the publicId, that means the document type has no public identifier.
systemId specifies the system identifier of the external subset. if you pass QString::null as the systemId, that means the document type has no system identifier.
and here's the rule, bestie, write it down: since you cannot have a public identifier without a system identifier, the public identifier is set to QString::null if there is no system identifier π«
DOM level 2 does not support any other document type declaration features. that's it, that's the whole menu.
also lowkey important: the only way you can use a document type that was created this way is in combination with the createDocument() function, to create a QDomDocument with this document type.
see also createDocument() π
πΈ bool QDomImplementation::hasFeature ( const QString & feature, const QString & version ) [virtual]
this one returns TRUE if QDom implements the requested version of a feature; otherwise it returns FALSE β β
the currently supported features and their versions β and no, I'm not making this up, this is literally what the man page shows right here:
<center>.nf
</center>
πΈ bool QDomImplementation::isNull ()
returns FALSE if the object was created by QDomDocument::implementation(); otherwise returns TRUE π
πΈ bool QDomImplementation::operator!= ( const QDomImplementation & x ) const
returns TRUE if x and this DOM implementation object were created from different QDomDocuments; otherwise returns FALSE π
πΈ QDomImplementation & QDomImplementation::operator= ( const QDomImplementation & x )
assigns x to this DOM implementation π₯
πΈ bool QDomImplementation::operator== ( const QDomImplementation & x ) const
returns TRUE if x and this DOM implementation object were created from the same QDomDocument; otherwise returns FALSE π«Ά
β¨ SEE ALSO β¨
β¨ COPYRIGHT β¨
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. π
β¨ AUTHOR β¨
Generated automatically from the source code. the robots did this one π€β¨
β¨ BUGS β¨
if you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. good bug reports help us to help you. Thank you. π«Ά
the definitive Qt documentation is provided in HTML format; it's located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. this man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech π
if you find errors in this manual page, please report them to qt-bugs@trolltech.com. please include the name of the manual page (qdomimplementation.3qt) and the Qt version (3.3.8). ty bestie, you're doing the lord's work π
and that's the whole page!! brought to you by Trolltech AS, dated 2 February 2007, and yeah the header says QDomImplementation(3qt) up top and down at the bottom too β iconic bookending, we love to see it πβ¨ππ¦
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms