|  |  |  |  | 
        
          |  |   |  
        
          | 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 DescriptionAPI: acdk.xml.dom<br>.
 Author:Roger Rene Kommer 
 Version:Revision1.14 
 Date:Date2005/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
 DocumentTypegiven to create the document, the implementation may instantiate specializedDocumentobjects that support additional features than the Core, such as HTML [DOM Level 2 HTML] . On the other hand, setting theDocumentTypeafter the document was created makes this very unlikely to happen. Alternatively, specializedDocumentcreation methods, such ascreateHTMLDocument[DOM Level 2 HTML] , can be used to obtain specific types ofDocumentobjects. 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. Whendoctypeis notnull, itsNode.ownerDocumentattribute is set to the document being created. | 
 Returns:A new Documentobject with its document element. If theNamespaceURI,qualifiedName, anddoctypearenull, the returnedDocumentis 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
 qualifiedNameis malformed, if thequalifiedNamehas a prefix and thenamespaceURIisnull, or if thequalifiedNameisnulland thenamespaceURIis different fromnull, or if thequalifiedNamehas a prefix that is xml and thenamespaceURIis different from http://www.w3.org/XML/1998/namespace [XML Namespaces] , or if the DOM implementation does not support theXMLfeature but a non-null namespace URI was provided, since namespaces were defined by XML.WRONG_DOCUMENT_ERR: Raised if
 doctypehas 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, aDocumentTypeobject may be returned, independently of the presence or absence of document type declaration in the HTML document.This provides direct access to the
 DocumentTypenode, child node of thisDocument. This node can be set at document creation time and later changed through the use of child nodes manipulation methods, such asNode.insertBefore, orNode.replaceChild. Note, however, that while some implementations may instantiate different types ofDocumentobjects supporting additional features than the Core, such as HTML [DOM Level 2 HTML] , based on theDocumentTypespecified 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:trueif the feature is implemented in the specified version,falseotherwise.
 
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] |  |  |  |