1. DOM_Implementation

This DOM_Implementation interface provides functions for testing the functionality of a DOM implementation as well as creating DOM_Document and DOM_DocumentType nodes.

1.1. The DOM_Implementation functions

The DOM_Implementation_hasFeature function
Synopsis

#include <domc.h> int DOM_Implementation_hasFeature(DOM_Implementation *this, DOM_String *feature, DOM_String *version);
Description
This function currently returns only 0 regardless of what parameters are specified.

The DOM_Implementation_createDocumentType function
Synopsis

#include <domc.h> DOM_Document *DOM_Implementation_createDocumentType(DOM_Implementation *this, DOM_String *qualifiedName, DOM_String *publicId, DOM_String *systemId);
Description
The DOM_Implementation_createDocumentType function creates an empty DOM_DocumentType node into which DOM_Entity, DOM_Notation, and possibly other type may be placed. Because there is no context document specified, a new DOM_DocumentType node will have a NULL ownerDocument member.

Currently this function is not fully implemented. Most infrastructure is in place however external entities are not parsed and default DTD values are not supported. The current DOM recommendations do not yet specify how this node type should be populated.

The DOM_Implementation_createDocument function
Synopsis

#include <domc.h> DOM_Document *DOM_Implementation_createDocument(DOM_Implementation *this, DOM_String *namespaceURI, DOM_String *qualifiedName, DOM_Document *doctype);
Description
Creates an XML Document object of the specified type with its document element. HTML-only DOM implementations do not need to implement this method.
Returns
A new Document object.


Copyright 2003 Michael B. Allen <mballen@erols.com> Generated by CStyleX 0.1.1