clan::DomImplementation Class Reference

DOM Implementation class. More...

#include <dom_implementation.h>

Public Member Functions

 DomImplementation ()
 Constructs a DOM Implementation handle. More...
 
 DomImplementation (DomDocument &doc)
 Constructs a DomImplementation. More...
 
 ~DomImplementation ()
 
DomDocument create_document (const DomString &namespace_uri, const DomString &qualified_name, const DomDocumentType &doctype)
 Creates an XML Document object of the specified type with its document element. More...
 
DomDocumentType create_document_type (const DomString &qualified_name, const DomString &public_id, const DomString &system_id)
 Creates an empty DocumentType node. More...
 
bool has_feature (const DomString &feature, const DomString &version)
 Test if the DOM implementation implements a specific feature. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

clan::DomImplementation::DomImplementation ( )

Constructs a DOM Implementation handle.

clan::DomImplementation::DomImplementation ( DomDocument doc)

Constructs a DomImplementation.

Parameters
doc= Dom Document
clan::DomImplementation::~DomImplementation ( )

Member Function Documentation

DomDocument clan::DomImplementation::create_document ( const DomString namespace_uri,
const DomString qualified_name,
const DomDocumentType doctype 
)

Creates an XML Document object of the specified type with its document element.

DomDocumentType clan::DomImplementation::create_document_type ( const DomString qualified_name,
const DomString public_id,
const 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 clan::DomImplementation::has_feature ( const DomString feature,
const DomString version 
)

Test if the DOM implementation implements a specific feature.

Parameters
featureThe package name of the feature to test. In Level 1, the legal values are "HTML" and "XML" (case-insensitive).
versionThis 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.

The documentation for this class was generated from the following file: