Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

TQDomImplementation Class Reference
[XML module]

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

All the functions in this class are reentrant when TQt is built with thread support.

#include <qdom.h>

List of all member functions.

Public Members


Detailed Description

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

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.

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

You can create a new document type with createDocumentType() and a new document with createDocument().

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

See also hasFeature() and XML.


Member Function Documentation

TQDomImplementation::TQDomImplementation ()

Constructs a TQDomImplementation object.

TQDomImplementation::TQDomImplementation ( const TQDomImplementation & x )

Constructs a copy of x.

TQDomImplementation::~TQDomImplementation () [virtual]

Destroys the object and frees its resources.

TQDomDocument TQDomImplementation::createDocument ( const TQString & nsURI, const TQString & qName, const TQDomDocumentType & 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.

TQDomDocumentType TQDomImplementation::createDocumentType ( const TQString & qName, const TQString & publicId, const TQString & systemId ) [virtual]

Creates a document type node for the name qName.

publicId specifies the public identifier of the external subset. If you specify TQString::null as the publicId, this means that the document type has no public identifier.

systemId specifies the system identifier of the external subset. If you specify TQString::null as the 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 to TQString::null if there is no system identifier.

DOM level 2 does not support any other document type declaration features.

The only way you can use a document type that was created this way, is in combination with the createDocument() function to create a TQDomDocument with this document type.

See also createDocument().

bool TQDomImplementation::hasFeature ( const TQString & feature, const TQString & version ) [virtual]

The function returns TRUE if TQDom implements the requested version of a feature; otherwise returns FALSE.

The currently supported features and their versions:

Feature Version
XML 1.0

bool TQDomImplementation::isNull ()

Returns FALSE if the object was created by TQDomDocument::implementation(); otherwise returns TRUE.

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

Returns TRUE if x and this DOM implementation object were created from different TQDomDocuments; otherwise returns FALSE.

TQDomImplementation & TQDomImplementation::operator= ( const TQDomImplementation & x )

Assigns x to this DOM implementation.

bool TQDomImplementation::operator== ( const TQDomImplementation & x ) const

Returns TRUE if x and this DOM implementation object were created from the same TQDomDocument; otherwise returns FALSE.

This file is part of the TQt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.


Copyright © 2007 TrolltechTrademarks
TQt 3.3.8