::class xmlDomImplementation public

CLASS: xmlDomImplementation

The xmlDomImplementation interface provides a number of methods for performing operations that are independent of any
particular instance of the document object model.

Definition at line 2584 of xmlDOM.cls

Public Methods

document - A new xmlDocument object with its document element. createDocument (namespaceURI='', qualifiedName='', docType=.nil)
node - An empty xmlDocumentType node. createDocumentType (qualifiedName, publicId, systemId)
object - Returns a xmlDomObject or .nil. getFeature (feature, version)
boolean - Returns .true if the feature is implemented in the specified version, .false otherwise. hasFeature (feature, version='')
  init ()
no comment

Private Attributes

  features
no comment

Instantiated by

tryxmldom.rex line 73
xmlDOM.cls line 2739

Feature Detail

xmlDomImplementation::attribute features private
Definition at line 2585 of xmlDOM.cls
Dynamically referenced by
xmlDOM.cls line 2589 "self~features = .directory~new"
xmlDOM.cls line 2590 "self~features["core"] = .directory~new~~putall(.array~of("",1.0,2.0))"
xmlDOM.cls line 2591 "self~features["xml"] = .directory~new~~putall(.array~of("",1.0,2.0))"
xmlDOM.cls line 2592 "self~features["ls-load"] = .directory~new~~putall(.array~of("",3.0))"
xmlDOM.cls line 2681 "versions = self~features[feature~lower]"
xmlDOM.cls line 2695 "versions = self~features[feature~lower]"

xmlDomImplementation::method init

Definition at line 2586 of xmlDOM.cls

xmlDomImplementation::method createDocument

Creates a DOM Document object of the specified type with its document element.

Note that based on the DocumentType given to create the document, the implementation may instantiate specialized
Document objects that support additional features than the "Core", such as "HTML" [DOM Level 2 HTML]. On the other
hand, setting the DocumentType after the document was created makes this very unlikely to happen. Alternatively,
specialized Document creation methods, such as createHTMLDocument [DOM Level 2 HTML], can be used to obtain specific
types of Document objects.

If the namespaceURI, qualifiedName, and docType are .nil, the returned xmlDocument is empty with no document
element.
When docType is not .nil, its ownerDocument attribute is set to the document being created.

Parameters
namespaceURI='' - The (optional) namespace URI of the document element to create or .nil.
qualifiedName='' - The (optional) qualified name of the document element to be created or null.
docType=.nil - The (optional) type of document to be created or .
Returns
document - A new xmlDocument object with its document element.
Raises
user - domException.INVALID_CHARACTER_ERR
user - domException.NAMESPACE_ERR

Definition at line 2613 of xmlDOM.cls
Dynamically referenced by
tryxmldom.rex line 73 "out = .xmlDOMImplementation~new~createDocument"
xmlDOM.cls line 2750 "self~doc = self~dom~createDocument()"

xmlDomImplementation::method createDocumentType

Creates an empty DocumentType node. Entity declarations and notations are not made available. Entity reference
expansions and default attribute additions do not occur.

Parameters
qualifiedName - The qualified name for to new document (e.g. 'gpx')
publicId - The public identifier of this document type (e.g. '-//W3C//DTD XHTML 1.0 Strict//EN')
systemId - The system identifier for the document type (e.g. 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd')
Returns
node - An empty xmlDocumentType node.

Definition at line 2659 of xmlDOM.cls

xmlDomImplementation::method getFeature

This method returns a specialized object which implements the specialized APIs of the specified feature and version,
as specified in DOM Features. The specialized object may also be obtained by using binding-specific casting methods
but is not necessarily expected to, as discussed in Mixed DOM Implementations. This method also allow the
implementation to provide specialized objects which do not support the DOMImplementation interface.

The returned xmlDomObject which implements the specialized APIs of the specified feature and version, it is
.nil if there is no object which implements interfaces associated with that feature.

NOTE,/b> - The DOM Level 3 Feature handler support is not currently implemented, therefore getFeature
will always return .nil.

Parameters
feature - The name of the feature requested.
version - This is the version number of the feature to test.
Returns
object - Returns a xmlDomObject or .nil.

Definition at line 2678 of xmlDOM.cls

xmlDomImplementation::method hasFeature

Test if the DOM implementation implements a specific feature and version, as specified in DOM Features.

Parameters
feature - The name of the feature requested.
version='' - This is the (optional) version number of the feature to test.
Returns
boolean - Returns .true if the feature is implemented in the specified version, .false otherwise.

Definition at line 2693 of xmlDOM.cls

Get RexxLiterate at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on 30 Jul 2015 13:57:00 for xmlDOM for OOrexx by rexxliterate  0.0.1