Classes - Annotated - Tree - Functions - Home - Structure

QDomImplementation Class Reference
[XML module]

The QDomImplementation class provides information about the features of the DOM implementation. More...

#include <qdom.h>

List of all member functions.

Public Members


Detailed Description

The QDomImplementation class provides information about the features of the DOM implementation.

This class describes the features that are supported by the DOM implementation. Currently only the XML subset of DOM Level 1 is supported.

Normally you will use the function QDomDocument::implementation() to get the implementation object.

For further information about the Document Object Model see http://www.w3.org/TR/REC-DOM-Level-1/. For a more general introduction of the DOM implementation see the QDomDocument documentation.

See also hasFeature().


Member Function Documentation

QDomImplementation::QDomImplementation ()

Constructs a QDomImplementation object.

QDomImplementation::QDomImplementation ( const QDomImplementation & x )

Constructs a copy of x.

QDomImplementation::~QDomImplementation () [virtual]

Destructor.

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 specify QString::null as publicId, this means that the document type has no public identifier.

Similar, you specify the system identifier of the external subset with systemId. If you specify QString::null as systemId, this means that the document type has no system identifier. Since you cannot have a public identifier without a system identifier, the public identifier is set also to QString::null in this case (the value of publicId is ignored).

Other features of a document type declaration are not supported by DOM level 2.

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]

The function returns TRUE if QDom implements the requested version of a feature.

Currently only the feature "XML" in version "1.0" is supported.

bool QDomImplementation::isNull ()

Returns TRUE if the object was not created by QDomDocument::implementation().

bool QDomImplementation::operator!= ( const QDomImplementation & x ) const

Returns TRUE if x and this DOM implementation object were created from different QDomDocuments.

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.

Search the documentation, FAQ, qt-interest archive and more (uses www.trolltech.com):


This file is part of the Qt toolkit, copyright © 1995-2000 Trolltech, all rights reserved.


Copyright © 2000 TrolltechTrademarks
Qt version main-beta1