File:  [Public] / DOM / Document.h
Revision 1.3: download - view: text, annotated - select for diffs
Mon Jun 15 03:15:33 1998 UTC (26 years ago) by daniel
Branches: MAIN
CVS tags: HEAD
Cleanup of Makefile, added (nearly) empty defs for Comment and PI, Daniel.

/*
 * Document.h : interfaces of the Document interface as defined by
 *       Document Object Model (Core) Level 1
 *       http://www.w3.org/TR/WD-DOM/level-one-core.html
 * 
 * Daniel.Veillard@w3.org
 *
 * $Id: Document.h,v 1.3 1998/06/15 03:15:33 daniel Exp $
 */

#ifndef __DOM_DOCUMENT_H__
#define __DOM_DOCUMENT_H__

#include "DocumentContext.h"
#include "Element.h"
#include "Node.h"
#include "NodeIterator.h"
#include "TreeIterator.h"
#include "Text.h"
#include "Comment.h"
#include "PI.h"
#include "Attribute.h"
#include "AttributeList.h"

/*
 * Structure
 */
typedef struct domDocument {
    domNodePtr documentType;		/* The DTD if any ... */
    domElementPtr documentElement;	/* The root of the document tree */
    domDocumentContextPtr contextInfo;	/* The document context */
} domDocument, * domDocumentPtr;

/*
 * Functions
 */

extern domElementPtr createElement(domDocumentPtr doc, char *tagName,
                                   domAttributeListPtr attributes);
extern domTextPtr createTextNode(domDocumentPtr doc, char *data);
extern domCommentPtr createCommentNode(domDocumentPtr doc, char *data);
extern domPIPtr createPINode(domDocumentPtr doc, char *name, char *data);
extern domAttributePtr createAttribute(domDocumentPtr doc, char *name,
                                        char *value);
extern domAttributeListPtr createAttributeList(domDocumentPtr doc);
extern domTreeIteratorPtr createTreeIterator(domDocumentPtr doc);
extern domNodeIteratorPtr getElementsByTagName(domDocumentPtr doc,
                                               char *tagname);

#endif /* __DOM_DOCUMENT_H__ */



Webmaster