Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

dsDocument Class Reference

#include <dsDocument.h>

Inheritance diagram for dsDocument:

dsNode List of all members.

Public Types

enum  dsNodeTypes {
  EMPTY_NODE = 0, ELEMENT_NODE = 1, ATTRIBUTE_NODE = 2, TEXT_NODE = 3,
  CDATA_SECTION_NODE = 4, ENTITY_REFERENCE_NODE = 5, ENTITY_NODE = 6, PROCESSING_INSTRUCTION_NODE = 7,
  COMMENT_NODE = 8, DOCUMENT_NODE = 9, DOCUMENT_TYPE_NODE = 10, DOCUMENT_FRAGMENT_NODE = 11,
  NOTATION_NODE = 12
}

Public Methods

dsDocumentTypedoctype ()
dsDOMImplementationimplementation ()
dsElementdocumentElement ()
dsElementcreateElement (DOMString tagName)
dsDocumentFragmentcreateDocumentFragment ()
dsTextcreateTextNode (DOMString data)
dsCommentcreateComment (DOMString data)
dsCDATASectioncreateCDATASection (DOMString data)
dsProcessingInstructioncreateProcessingInstruction (DOMString target, DOMString data)
dsProcessingInstructioncreateProcessingInstruction (DOMString target)
dsAttrcreateAttribute (DOMString name)
dsEntityReferencecreateEntityReference (DOMString name)
dsNodeListgetElementsByTagName (DOMString tagname)
dsElementgetElementById (DOMString elementId)
dsNodeimportNode (dsNode importeddsNode, bool deep)
dsElementcreateElementNS (DOMString namespaceURI, DOMString qualifiedName)
dsAttrcreateAttributeNS (DOMString namespaceURI, DOMString qualifiedName)
dsNodeListgetElementsByTagNameNS (DOMString namespaceURI, DOMString localName)
bool isReadOnly ()
void setContent (std::istream &is, bool readOnly=false)
void writeContent (std::ostream &os)
void createDocumentHeader (char *version, char *encoding)
dsNodefindChild (const DOMString tag, dsNode *root, dsNodeTypes type=EMPTY_NODE)
dsNodetextChild (dsNode *root)
 dsDocument ()
 ~dsDocument ()
dsNodeinsertBefore (dsNode *newChild, dsNode *refChild)
dsNodereplaceChild (dsNode *newChild, dsNode *oldChild)
dsNoderemoveChild (dsNode *oldChild)
dsNodeappendChild (dsNode *newChild)
bool * hasChildNodes ()
dsNodecloneNode (bool deep)
void normalize ()
bool isSupported (DOMString feature, DOMString version)
DOMString prefix ()
DOMString localName ()
bool hasAttributes ()
dsNamedNodeMap attributes ()
dsNodeListchildNodes ()
DOMString nodeName ()
DOMString nodeValue ()
dsNodeTypes nodeType ()
dsNodeparentNode ()
dsNodefirstChild ()
dsNodelastChild ()
dsNodepreviousSibling ()
dsNodenextSibling ()
dsDocument * ownerDocument ()
void setNodeValue (DOMString value)
bool isTextNode ()
bool isAttrNode ()
bool isElementNode ()
bool isDocumentNode ()
bool isCommentNode ()
bool isProcessingInstructionNode ()

Protected Methods

void setNodeName (DOMString newone)
dsNode__removeChildIfExists (dsNode *oldChild)
dsNode__checkDirectChild (dsNode *oldChild)
dsNode__fastAppendChild (dsNode *newChild)
void __checkReadOnly ()

Protected Attributes

dsXMLParser_pr
bool _read_only
DOMString _nodeName
DOMString _nodeValue
dsNodeTypes _nodeType
dsNode_parentNode
dsNode_firstChild
dsNode_lastChild
dsNode_previousSibling
dsNode_nextSibling
dsDocument * _ownerDocument
DOMString _namespaceURI

Friends

class dsAttr
class dsXMLParser
class dsElement
class dsDocument

Member Enumeration Documentation

enum dsNode::dsNodeTypes [inherited]
 

Enumeration values:
EMPTY_NODE 
ELEMENT_NODE 
ATTRIBUTE_NODE 
TEXT_NODE 
CDATA_SECTION_NODE 
ENTITY_REFERENCE_NODE 
ENTITY_NODE 
PROCESSING_INSTRUCTION_NODE 
COMMENT_NODE 
DOCUMENT_NODE 
DOCUMENT_TYPE_NODE 
DOCUMENT_FRAGMENT_NODE 
NOTATION_NODE 


Constructor & Destructor Documentation

dsDocument::dsDocument  
 

dsDocument::~dsDocument  
 


Member Function Documentation

dsNode * dsNode::__checkDirectChild dsNode   oldChild [protected, inherited]
 

void dsNode::__checkReadOnly   [protected, inherited]
 

dsNode * dsNode::__fastAppendChild dsNode   newChild [protected, inherited]
 

dsNode * dsNode::__removeChildIfExists dsNode   oldChild [protected, inherited]
 

dsNode * dsNode::appendChild dsNode   newChild [inherited]
 

dsNamedNodeMap dsNode::attributes   [inherited]
 

dsNodeList* dsNode::childNodes   [inherited]
 

dsNode* dsNode::cloneNode bool    deep [inherited]
 

dsAttr * dsDocument::createAttribute DOMString    name
 

dsAttr * dsDocument::createAttributeNS DOMString    namespaceURI,
DOMString    qualifiedName
 

dsCDATASection * dsDocument::createCDATASection DOMString    data
 

dsComment * dsDocument::createComment DOMString    data
 

dsDocumentFragment * dsDocument::createDocumentFragment  
 

void dsDocument::createDocumentHeader char *    version,
char *    encoding
 

Create heading processing instruction <?xml version= encoding= ?>

dsElement * dsDocument::createElement DOMString    tagName
 

dsElement * dsDocument::createElementNS DOMString    namespaceURI,
DOMString    qualifiedName
 

dsEntityReference * dsDocument::createEntityReference DOMString    name
 

dsProcessingInstruction * dsDocument::createProcessingInstruction DOMString    target
 

dsProcessingInstruction * dsDocument::createProcessingInstruction DOMString    target,
DOMString    data
 

dsText * dsDocument::createTextNode DOMString    data
 

dsDocumentType * dsDocument::doctype  
 

dsElement * dsDocument::documentElement  
 

dsNode * dsDocument::findChild const DOMString    tag,
dsNode   root,
dsNodeTypes    type = EMPTY_NODE
 

dsNode* dsNode::firstChild   [inline, inherited]
 

dsElement * dsDocument::getElementById DOMString    elementId
 

dsNodeList * dsDocument::getElementsByTagName DOMString    tagname
 

dsNodeList * dsDocument::getElementsByTagNameNS DOMString    namespaceURI,
DOMString    localName
 

bool dsNode::hasAttributes   [inherited]
 

bool* dsNode::hasChildNodes   [inherited]
 

dsDOMImplementation * dsDocument::implementation  
 

dsNode * dsDocument::importNode dsNode    importeddsNode,
bool    deep
 

dsNode * dsNode::insertBefore dsNode   newChild,
dsNode   refChild
[inherited]
 

bool dsNode::isAttrNode   [inline, inherited]
 

bool dsNode::isCommentNode   [inline, inherited]
 

bool dsNode::isDocumentNode   [inline, inherited]
 

bool dsNode::isElementNode   [inline, inherited]
 

bool dsNode::isProcessingInstructionNode   [inline, inherited]
 

bool dsDocument::isReadOnly   [inline]
 

bool dsNode::isSupported DOMString    feature,
DOMString    version
[inherited]
 

bool dsNode::isTextNode   [inline, inherited]
 

dsNode* dsNode::lastChild   [inline, inherited]
 

DOMString dsNode::localName   [inherited]
 

dsNode* dsNode::nextSibling   [inline, inherited]
 

DOMString dsNode::nodeName   [inline, inherited]
 

dsNodeTypes dsNode::nodeType   [inline, inherited]
 

DOMString dsNode::nodeValue   [inline, inherited]
 

void dsNode::normalize   [inherited]
 

dsDocument* dsNode::ownerDocument   [inline, inherited]
 

dsNode* dsNode::parentNode   [inline, inherited]
 

DOMString dsNode::prefix   [inherited]
 

dsNode* dsNode::previousSibling   [inline, inherited]
 

dsNode * dsNode::removeChild dsNode   oldChild [inherited]
 

dsNode * dsNode::replaceChild dsNode   newChild,
dsNode   oldChild
[inherited]
 

void dsDocument::setContent std::istream &    is,
bool    readOnly = false
 

Read and parse xml from stream is

void dsNode::setNodeName DOMString    newone [protected, inherited]
 

void dsNode::setNodeValue DOMString    value [inherited]
 

dsNode * dsDocument::textChild dsNode   root
 

void dsDocument::writeContent std::ostream &    os
 

Write xml to stream is


Friends And Related Function Documentation

friend class dsAttr [friend]
 

Reimplemented from dsNode.

friend class dsDocument [friend, inherited]
 

Reimplemented in dsAttr, dsCDATASection, dsComment, dsElement, and dsText.

friend class dsElement [friend, inherited]
 

friend class dsXMLParser [friend, inherited]
 

Reimplemented in dsAttr, dsCDATASection, dsComment, and dsElement.


Member Data Documentation

dsNode* dsNode::_firstChild [protected, inherited]
 

dsNode* dsNode::_lastChild [protected, inherited]
 

DOMString dsNode::_namespaceURI [protected, inherited]
 

dsNode* dsNode::_nextSibling [protected, inherited]
 

DOMString dsNode::_nodeName [protected, inherited]
 

dsNodeTypes dsNode::_nodeType [protected, inherited]
 

DOMString dsNode::_nodeValue [protected, inherited]
 

dsDocument* dsNode::_ownerDocument [protected, inherited]
 

dsNode* dsNode::_parentNode [protected, inherited]
 

dsXMLParser* dsDocument::_pr [protected]
 

dsNode* dsNode::_previousSibling [protected, inherited]
 

bool dsDocument::_read_only [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon May 16 18:26:59 2005 for libdms4 by doxygen1.3-rc2