![]() |
Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions | ![]() |
The QDomImplementation class provides information about the features of the DOM implementation. More...
#include <QDomImplementation>
Part of the QtXml module.
Note: All the functions in this class are reentrant.
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 the XML subset of DOM Level 1 and DOM Level 2 Core are supported.
Normally you will use the function QDomDocument::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 Level 1 and Level 2 Core. For a more general introduction of the DOM implementation see the QDomDocument documentation.
See also hasFeature().
Constructs a QDomImplementation object.
Constructs a copy of x.
Destroys the object and frees its resources.
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.
Creates a document type node for the name qName.
publicId specifies the public identifier of the external subset. If you specify an empty string (QString()) 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 an empty string 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 an empty string 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 QDomDocument with this document type.
See also createDocument().
The function returns true if QDom implements the requested version of a feature; otherwise returns false.
The currently supported features and their versions:
Feature | Version |
---|---|
XML | 1.0 |
Returns false if the object was created by QDomDocument::implementation(); otherwise returns true.
Returns true if x and this DOM implementation object were created from different QDomDocuments; otherwise returns false.
Assigns x to this DOM implementation.
Returns true if x and this DOM implementation object were created from the same QDomDocument; otherwise returns false.
Copyright © 2005 Trolltech | Trademarks | Qt 4.0.0 |