Annotation of DOM/Document.h, revision 1.4

1.1       daniel      1: /*
                      2:  * Document.h : interfaces of the Document interface as defined by
                      3:  *       Document Object Model (Core) Level 1
                      4:  *       http://www.w3.org/TR/WD-DOM/level-one-core.html
                      5:  * 
                      6:  * Daniel.Veillard@w3.org
                      7:  *
1.4     ! daniel      8:  * $Id: Document.h,v 1.3 1998/06/15 03:15:33 daniel Exp $
1.1       daniel      9:  */
                     10: 
                     11: #ifndef __DOM_DOCUMENT_H__
                     12: #define __DOM_DOCUMENT_H__
                     13: 
                     14: #include "DocumentContext.h"
                     15: #include "Element.h"
                     16: #include "Node.h"
                     17: #include "NodeIterator.h"
                     18: #include "TreeIterator.h"
                     19: #include "Text.h"
                     20: #include "Comment.h"
                     21: #include "PI.h"
                     22: #include "Attribute.h"
                     23: #include "AttributeList.h"
                     24: 
                     25: /*
                     26:  * Structure
                     27:  */
                     28: typedef struct domDocument {
                     29:     domNodePtr documentType;           /* The DTD if any ... */
                     30:     domElementPtr documentElement;     /* The root of the document tree */
                     31:     domDocumentContextPtr contextInfo; /* The document context */
                     32: } domDocument, * domDocumentPtr;
                     33: 
                     34: /*
                     35:  * Functions
                     36:  */
                     37: 
                     38: extern domElementPtr createElement(domDocumentPtr doc, char *tagName,
                     39:                                    domAttributeListPtr attributes);
                     40: extern domTextPtr createTextNode(domDocumentPtr doc, char *data);
                     41: extern domCommentPtr createCommentNode(domDocumentPtr doc, char *data);
                     42: extern domPIPtr createPINode(domDocumentPtr doc, char *name, char *data);
                     43: extern domAttributePtr createAttribute(domDocumentPtr doc, char *name,
                     44:                                         char *value);
                     45: extern domAttributeListPtr createAttributeList(domDocumentPtr doc);
1.2       daniel     46: extern domTreeIteratorPtr createTreeIterator(domDocumentPtr doc);
                     47: extern domNodeIteratorPtr getElementsByTagName(domDocumentPtr doc,
                     48:                                                char *tagname);
1.4     ! daniel     49: 
        !            50: /* Cleanup stuff not handled by DOM */
        !            51: extern void destroyElement(domElementPtr old);
        !            52: extern void destroyText(domTextPtr old);
        !            53: extern void destroyComment(domCommentPtr old);
        !            54: extern void destroyPI(domPIPtr old);
        !            55: extern void destroyAttribute(domAttributePtr old);
        !            56: extern void destroyAttributeList(domAttributeListPtr old);
        !            57: extern void destroyTreeIterator(domTreeIteratorPtr old);
1.1       daniel     58: 
                     59: #endif /* __DOM_DOCUMENT_H__ */
                     60: 
                     61: 

Webmaster