QDomImplementation Class
The QDomImplementation class provides information about the features of the DOM implementation. More...
| Header: | #include <QDomImplementation> |
| qmake: | QT += xml |
Note: All functions in this class are reentrant.
Public Types
| enum | InvalidDataPolicy { AcceptInvalidChars, DropInvalidChars, ReturnNullNode } |
Detailed Description
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.
The QDom classes have a few issues of nonconformance with the XML specifications that cannot be fixed in Qt 4 without breaking backward compatibility. The Qt XML Patterns module and the QXmlStreamReader and QXmlStreamWriter classes have a higher degree of a conformance.
See also hasFeature().
Member Type Documentation
enum QDomImplementation::InvalidDataPolicy
This enum specifies what should be done when a factory function in QDomDocument is called with invalid data.
| Constant | Value | Description |
|---|---|---|
QDomImplementation::AcceptInvalidChars | 0 | The data should be stored in the DOM object anyway. In this case the resulting XML document might not be well-formed. This is the default value and QDom's behavior in Qt < 4.1. |
QDomImplementation::DropInvalidChars | 1 | The invalid characters should be removed from the data. |
QDomImplementation::ReturnNullNode | 2 | The factory function should return a null node. |
See also setInvalidDataPolicy() and invalidDataPolicy().