XMLParserItf Interface CATIDOMImplementation

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATIDOMImplementation

Interface providing a number of methods for performing operations that are independent of any particular instance of the document object model.


Method Index


o CreateDocument(CATUnicodeString&,CATUnicodeString&,CATIDOMDocumentType_var&,CATIDOMDocument_var&)
Creates an XML CATIDOMDocument object of the specified type with its document element.
o CreateDocumentType(CATUnicodeString&,CATUnicodeString&,CATUnicodeString&,CATIDOMDocumentType_var&)
Creates an empty CATIDOMDocumentType node.
o HasFeature(CATUnicodeString&,CATUnicodeString&,CATBoolean&)
Tests if the DOM implementation implements a specific feature.

Methods


o CreateDocument
public virtual CreateDocument( const iNamespaceURI,
const iQualifiedName,
const iDocumentType,
oDocument)
Creates an XML CATIDOMDocument object of the specified type with its document element.
Parameters:
iNamespaceURI
The namespace URI of the document element to create.
iQualifiedName
The qualified name of the document element to be created.
iDocumentType
The type of document to be created or NULL_var. When iDocumentType is not NULL_var, the result of the method
will be the document being created.
oDocument
A new
object.
Errors Returned:
Error Class Error Id Description
XMLParserERR_2205 INVALID_CHARACTER_ERR: Raised if the specified iQualifiedName contains an illegal character.
XMLParserERR_2214 NAMESPACE_ERR: Raised if the iQualifiedName is malformed, if the iQualifiedName has a prefix and the iNamespaceURI is an empty string, or if the iQualifiedName has a prefix that is "xml" and the iNamespaceURI is different from "http://www.w3.org/XML/1998/namespace" .
XMLParserERR_2204 WRONG_DOCUMENT_ERR: Raised if iDocumentType has already been used with a different document or was created from a different implementation.
See also:
,
o CreateDocumentType
public virtual CreateDocumentType( const iQualifiedName,
const iPublicId,
const iSystemId,
oDocumentType)
Creates an empty CATIDOMDocumentType 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 .
Parameters:
iQualifiedName
The qualified name of the document type to be created.
iPublicId
The external subset public identifier.
iSystemId
The external subset system identifier.
oDocumentType
A new
node whose method will return NULL_var.
Errors Returned:
Error Class Error Id Description
XMLParserERR_2205 INVALID_CHARACTER_ERR: Raised if the specified iQualifiedName contains an illegal character.
XMLParserERR_2214 NAMESPACE_ERR: Raised if the iQualifiedName is malformed.
See also:
o HasFeature
public virtual HasFeature( const iFeature,
const iVersion,
oResult)
Tests if the DOM implementation implements a specific feature.
Parameters:
iFeature
The name of the feature to test (case-insensitive). The values used by DOM features are defined throughout the DOM Level 2 specifications and listed in the section. The name must be an XML name. To avoid possible conflicts, as a convention, names referring to features defined outside the DOM specification should be made unique by reversing the name of the Internet domain name of the person (or the organization that the person belongs to) who defines the feature, component by component, and using this as a prefix. For instance, the W3C SVG Working Group defines the feature "org.w3c.dom.svg".
iVersion
The version number of the feature to test. In Level 2, the string can be either "2.0" or "1.0". If the version is not specified, supporting any version of the feature causes the method to return TRUE.
oResult
Set to TRUE if the feature is implemented in the specified version, to FALSE otherwise.

This object is included in the file: CATIDOMImplementation.h
If needed, your Imakefile.mk should include the module: CatXmlItfExt

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.