|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::xml::dom::XMLDocument Class Reference#include <XMLDocument.h>
Inheritance diagram for acdk::xml::dom::XMLDocument:
List of all members.
Detailed Description
API: acdk.xml.dom<br>.
- Author:
- Roger Rene Kommer
- Version:
- Revision
- 1.14
- Date:
- Date
- 2005/04/08 10:53:21
Constructor & Destructor Documentation
acdk::xml::dom::XMLDocument::XMLDocument |
( |
|
) |
[inline] |
|
Member Function Documentation
virtual RComment acdk::xml::dom::XMLDocument::createComment |
( |
IN(RString) |
s |
) |
[virtual] |
|
|
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. - Parameters:
-
namespaceURI | The namespace URI of the document element to create or null . |
qualifiedName | The qualified name of the document element to be created or null . |
doctype | The type of document to be created or null . When doctype is not null , its Node.ownerDocument attribute is set to the document being created. |
- Returns:
- A new
Document object with its document element. If the NamespaceURI , qualifiedName , and doctype are null , the returned Document is empty with no document element.
- Exceptions:
-
DOMException | INVALID_CHARACTER_ERR: Raised if the specified qualified name is not an XML name according to [XML 1.0].
NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the qualifiedName has a prefix and the namespaceURI is null , or if the qualifiedName is null and the namespaceURI is different from null , or if the qualifiedName has a prefix that is xml and the namespaceURI is different from http://www.w3.org/XML/1998/namespace [XML Namespaces] , or if the DOM implementation does not support the XML feature but a non-null namespace URI was provided, since namespaces were defined by XML.
WRONG_DOCUMENT_ERR: Raised if doctype has already been used with a different document or was created from a different implementation.
NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature XML and the language exposed through the Document does not support XML Namespaces (such as [HTML 4.01]). |
- Since:
- DOM Level 2
Implements org::w3c::dom::DOMImplementation. |
virtual RText acdk::xml::dom::XMLDocument::createTextNode |
( |
IN(RString) |
s |
) |
[virtual] |
|
|
The Document Type Declaration (see DocumentType ) associated with this document.
For XML documents without a document type declaration this returns null . For HTML documents, a DocumentType object may be returned, independently of the presence or absence of document type declaration in the HTML document.
This provides direct access to the DocumentType node, child node of this Document . This node can be set at document creation time and later changed through the use of child nodes manipulation methods, such as Node.insertBefore , or Node.replaceChild . Note, however, that while some implementations may instantiate different types of Document objects supporting additional features than the Core, such as HTML [DOM Level 2 HTML] , based on the DocumentType specified at creation time, changing it afterwards is very unlikely to result in a change of the features supported. - Version:
- DOM Level 3
Implements org::w3c::dom::Document. |
|
This is a convenience attribute that allows direct access to the child node that is the document element of the document.
Implements org::w3c::dom::Document. |
virtual RNodeList acdk::xml::dom::XMLDocument::getElementsByTagName |
( |
IN(RString) |
s |
) |
[virtual] |
|
virtual RDocument acdk::xml::dom::XMLDocument::getOwnerDocument |
( |
|
) |
[inline, virtual] |
|
virtual bool acdk::xml::dom::XMLDocument::hasFeature |
( |
IN(RString) |
feature, |
|
|
IN(RString) |
version |
|
) |
[virtual] |
|
|
Test if the DOM implementation implements a specific feature and version, as specified in .
- Parameters:
-
feature | The name of the feature to test. |
version | This is the version number of the feature to test. |
- Returns:
true if the feature is implemented in the specified version, false otherwise.
Implements org::w3c::dom::DOMImplementation. |
void acdk::xml::dom::XMLDocument::setDocumentRoot |
( |
IN(RXMLElement) |
el |
) |
|
|
virtual RString acdk::xml::dom::XMLDocument::toString |
( |
|
) |
[inline, virtual] |
|
RString acdk::xml::dom::XMLDocument::toXML |
( |
|
) |
[inline, virtual] |
|
|
|