.TH "DOM::DOMImplementation" 3 "28 Jan 2004" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::DOMImplementation \- The \fC \fBDOMImplementation\fP \fP interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <dom_doc.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBDOMImplementation\fP (const  \fBDOMImplementation\fP &other)"
.br
.ti -1c
.RI "\fBDOMImplementation\fP & \fBoperator=\fP (const  \fBDOMImplementation\fP &other)"
.br
.ti -1c
.RI "bool \fBhasFeature\fP (const  \fBDOMString\fP &feature, const  \fBDOMString\fP &version)"
.br
.RI "\fITest if the \fBDOM\fP implementation implements a specific feature. \fP"
.ti -1c
.RI "\fBDocumentType\fP \fBcreateDocumentType\fP (const  \fBDOMString\fP &qualifiedName, const  \fBDOMString\fP &publicId, const  \fBDOMString\fP &systemId)"
.br
.RI "\fIIntroduced in \fBDOM\fP Level 2. \fP"
.ti -1c
.RI "\fBDocument\fP \fBcreateDocument\fP (const  \fBDOMString\fP &namespaceURI, const  \fBDOMString\fP &qualifiedName, const  \fBDocumentType\fP &doctype)"
.br
.RI "\fIIntroduced in \fBDOM\fP Level 2. \fP"
.ti -1c
.RI "\fBDOMImplementation\fP \fBgetInterface\fP (const  \fBDOMString\fP &feature) const "
.br
.RI "\fIIntroduced in \fBDOM\fP Level 3 This method makes available a DOMImplementation's specialized interface. \fP"
.ti -1c
.RI "\fBCSSStyleSheet\fP \fBcreateCSSStyleSheet\fP (const  \fBDOMString\fP &title, const  \fBDOMString\fP &media)"
.br
.RI "\fIIntroduced in \fBDOM\fP Level 2 This method is from the DOMImplementationCSS interface. \fP"
.ti -1c
.RI "\fBHTMLDocument\fP \fBcreateHTMLDocument\fP (const  \fBDOMString\fP &title)"
.br
.RI "\fIIntroduced in \fBDOM\fP Level 2 This method is from the HTMLDOMImplementation interface. \fP"
.ti -1c
.RI "DOMImplementationImpl * \fBhandle\fP () const "
.br
.ti -1c
.RI "bool \fBisNull\fP () const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "\fBDOMImplementation\fP (DOMImplementationImpl *i)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "DOMImplementationImpl * \fBimpl\fP"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBDocument\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
The \fC \fBDOMImplementation\fP \fP interface provides a number of methods for performing operations that are independent of any particular instance of the document object model. 

\fBDOM\fP Level 2 and newer provide means for creating documents directly, which was not possible with \fBDOM\fP Level 1. 
.PP
Definition at line 76 of file dom_doc.h.
.SH "Member Function Documentation"
.PP 
.SS "bool DOMImplementation::hasFeature (const \fBDOMString\fP & feature, const \fBDOMString\fP & version)"
.PP
Test if the \fBDOM\fP implementation implements a specific feature. \fBParameters:\fP
.RS 4
\fIfeature\fP The package name of the feature to test. In Level 1, the legal values are 'HTML' and 'XML' (case-insensitive).
.br
\fIversion\fP This is the version number of the package name to test. In Level 1, this is the string '1.0'. If the version is not specified, supporting any version of the feature will cause the method to return \fC true \fP .
.RE
.PP
\fBReturns:\fP
.RS 4
\fC true \fP if the feature is implemented in the specified version, \fC false \fP otherwise. 
.RE
.PP
Definition at line 72 of file dom_doc.cpp.
.SS "\fBDocumentType\fP DOMImplementation::createDocumentType (const \fBDOMString\fP & qualifiedName, const \fBDOMString\fP & publicId, const \fBDOMString\fP & systemId)"
.PP
Introduced in \fBDOM\fP Level 2. Creates an empty \fBDocumentType\fP node. \fBEntity\fP declarations and notations are not made available. \fBEntity\fP reference expansions and default attribute additions do not occur. It is expected that a future version of the \fBDOM\fP will provide a way for populating a \fBDocumentType\fP.
.PP
HTML-only \fBDOM\fP implementations do not need to implement this method.
.PP
\fBParameters:\fP
.RS 4
\fIqualifiedName\fP The qualified name of the document type to be created.
.br
\fIpublicId\fP The external subset public identifier.
.br
\fIsystemId\fP The external subset system identifier.
.RE
.PP
\fBReturns:\fP
.RS 4
A new \fBDocumentType\fP node with \fBNode.ownerDocument\fP set to null.
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
.RE
.PP
NAMESPACE_ERR: Raised if the qualifiedName is malformed. Definition at line 80 of file dom_doc.cpp.
.SS "\fBDocument\fP DOMImplementation::createDocument (const \fBDOMString\fP & namespaceURI, const \fBDOMString\fP & qualifiedName, const \fBDocumentType\fP & doctype)"
.PP
Introduced in \fBDOM\fP Level 2. Creates an XML \fBDocument\fP object of the specified type with its document element. HTML-only \fBDOM\fP implementations do not need to implement this method.
.PP
\fBParameters:\fP
.RS 4
\fInamespaceURI\fP The namespace URI of the document element to create.
.br
\fIqualifiedName\fP The qualified name of the document element to be created.
.br
\fIdoctype\fP The type of document to be created or null. When doctype is not null, its \fBNode.ownerDocument\fP attribute is set to the document being created.
.RE
.PP
\fBReturns:\fP
.RS 4
A new \fBDocument\fP object.
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
.RE
.PP
NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the qualifiedName has a prefix and the namespaceURI is null, or if the qualifiedName has a prefix that is 'xml' and the namespaceURI is different from 'http://www.w3.org/XML/1998/namespace' [Namespaces].
.PP
WRONG_DOCUMENT_ERR: Raised if doctype has already been used with a different document or was created from a different implementation. Definition at line 94 of file dom_doc.cpp.
.SS "\fBDOMImplementation\fP DOMImplementation::getInterface (const \fBDOMString\fP & feature) const"
.PP
Introduced in \fBDOM\fP Level 3 This method makes available a DOMImplementation's specialized interface. \fBParameters:\fP
.RS 4
\fIfeature\fP The name of the feature requested (case-insensitive)
.RE
.PP
\fBReturns:\fP
.RS 4
Returns an alternate \fBDOMImplementation\fP which implements the specialized APIs of the specified feature, if any, or null if there is no alternate \fBDOMImplementation\fP object which implements interfaces associated with that feature. Any alternate \fBDOMImplementation\fP returned by this method must delegate to the primary core \fBDOMImplementation\fP and not return results inconsistent with the primary \fBDOMImplementation\fP. 
.RE
.PP
Definition at line 122 of file dom_doc.cpp.
.SS "\fBCSSStyleSheet\fP DOMImplementation::createCSSStyleSheet (const \fBDOMString\fP & title, const \fBDOMString\fP & media)"
.PP
Introduced in \fBDOM\fP Level 2 This method is from the DOMImplementationCSS interface. Creates a new \fBCSSStyleSheet\fP.
.PP
\fBParameters:\fP
.RS 4
\fItitle\fP The advisory title. See also the Style Sheet Interfaces section.
.RE
.PP
media The comma-separated list of media associated with the new style sheet. See also the Style Sheet Interfaces section.
.PP
\fBReturns:\fP
.RS 4
A new CSS style sheet.
.RE
.PP
\fBExceptions:\fP
.RS 4
\fISYNTAX_ERR:\fP Raised if the specified media string value has a syntax error and is unparsable. 
.RE
.PP
Definition at line 130 of file dom_doc.cpp.
.PP
References DOM::DOMString::implementation().
.SS "\fBHTMLDocument\fP DOMImplementation::createHTMLDocument (const \fBDOMString\fP & title)"
.PP
Introduced in \fBDOM\fP Level 2 This method is from the HTMLDOMImplementation interface. Creates an \fBHTMLDocument\fP with the minimal tree made of these elements: HTML,HEAD,TITLE and BODY. It extends the core interface which can be used to create an XHTML document by passing the XHTML namespace as the namespace for the root element.
.PP
\fBParameters:\fP
.RS 4
\fItitle\fP The title of the document to be set as the content of the TITLE element, through a child \fBText\fP node.
.RE
.PP
\fBReturns:\fP
.RS 4
the HTMLdocument 
.RE
.PP
Definition at line 108 of file dom_doc.cpp.
.PP
References QString::fromLatin1(), and DOM::DOMString::string().

.SH "Author"
.PP 
Generated automatically by Doxygen for khtml Library from the source code.
