ClanLib
2.3.7
|
DOM Implementation class. More...
#include <dom_implementation.h>
Public Member Functions | |
Construction | |
CL_DomImplementation () | |
Constructs a DOM Implementation handle. More... | |
CL_DomImplementation (CL_DomDocument &doc) | |
Constructs a DomImplementation. More... | |
~CL_DomImplementation () | |
Operations | |
bool | has_feature (const CL_DomString &feature, const CL_DomString &version) |
Test if the DOM implementation implements a specific feature. More... | |
CL_DomDocumentType | create_document_type (const CL_DomString &qualified_name, const CL_DomString &public_id, const CL_DomString &system_id) |
Creates an empty DocumentType node. More... | |
CL_DomDocument | create_document (const CL_DomString &namespace_uri, const CL_DomString &qualified_name, const CL_DomDocumentType &doctype) |
Creates an XML Document object of the specified type with its document element. More... | |
DOM Implementation class.
The DOM Implementation interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.
CL_DomImplementation::CL_DomImplementation | ( | ) |
Constructs a DOM Implementation handle.
CL_DomImplementation::CL_DomImplementation | ( | CL_DomDocument & | doc) |
Constructs a DomImplementation.
doc | = Dom Document |
CL_DomImplementation::~CL_DomImplementation | ( | ) |
CL_DomDocument CL_DomImplementation::create_document | ( | const CL_DomString & | namespace_uri, |
const CL_DomString & | qualified_name, | ||
const CL_DomDocumentType & | doctype | ||
) |
Creates an XML Document object of the specified type with its document element.
CL_DomDocumentType CL_DomImplementation::create_document_type | ( | const CL_DomString & | qualified_name, |
const CL_DomString & | public_id, | ||
const CL_DomString & | system_id | ||
) |
Creates an empty DocumentType node.
Entity declarations and notations are not made available. Entity reference expansions and default attribute additions do not occur. It is expected that a future version of the DOM will provide a way for populating a DocumentType.
bool CL_DomImplementation::has_feature | ( | const CL_DomString & | feature, |
const CL_DomString & | version | ||
) |
Test if the DOM implementation implements a specific feature.
feature | The package name of the feature to test. In Level 1, the legal values are "HTML" and "XML" (case-insensitive). |
version | 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 true. retval: true if the feature is implemented in the specified version, false otherwise. |