/***************************************************************************
                            QDomDocument.h -  description
                             -------------------
    begin                : Wed Nov 21 12:08:37 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 12:08:37 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef QDOMDOCUMENT_H
#define QDOMDOCUMENT_H

#include <Foundation/NSObject.h>
#include <Foundation/NSString.h>
#include <qtobjc/QDomNode.h>
#include <qtobjc/QIODevice.h>
#include <qtobjc/QDomImplementation.h>

@class QByteArray;

@interface QDomDocument : QDomNode 
- init;
- initWithText: (NSString *)name;
- initWithDomDocumentType: (QDomDocumentType*)doctype;
- copyWithZone: (NSZone *) zone;
- (void) dealloc;
- (QDomElement*) createElement: (NSString *)tagName;
- (QDomDocumentFragment*) createDocumentFragment;
- (QDomText*) createTextNode: (NSString *)data;
- (QDomComment*) createComment: (NSString *)data;
- (QDomCDATASection*) createCDATASection: (NSString *)data;
- (QDomProcessingInstruction*) createProcessingInstruction: (NSString *)target data: (NSString *)data;
- (QDomAttr*) createAttribute: (NSString *)name;
- (QDomEntityReference*) createEntityReference: (NSString *)name;
- (NSArray *) elementsByTagName: (NSString *)tagname;
- (QDomNode*) importNode: (QDomNode*)importedNode deep: (BOOL)deep;
- (QDomElement*) createElementNS: (NSString *)nsURI qName: (NSString *)qName;
- (QDomAttr*) createAttributeNS: (NSString *)nsURI qName: (NSString *)qName;
- (NSArray *) elementsByTagNameNS: (NSString *)nsURI localName: (NSString *)localName;
- (QDomElement*) elementById: (NSString *)elementId;
- (QDomDocumentType*) doctype;
- (QDomImplementation*) implementation;
- (QDomElement*) documentElement;
- (BOOL) setContent: (NSString *)text namespaceProcessing: (BOOL)namespaceProcessing errorMsg: (NSString *)errorMsg errorLine: (int*)errorLine errorColumn: (int*)errorColumn;
- (BOOL) setContent: (NSString *)text namespaceProcessing: (BOOL)namespaceProcessing ;
- (BOOL) setContentFromByteArray: (QByteArray*)text namespaceProcessing: (BOOL)namespaceProcessing errorMsg: (NSString *)errorMsg errorLine: (int*)errorLine errorColumn: (int*)errorColumn;
- (BOOL) setContentFromByteArray: (QByteArray*)text namespaceProcessing: (BOOL)namespaceProcessing ;
- (BOOL) setContent: (NSString *)text namespaceProcessing: (BOOL)namespaceProcessing errorMsg: (NSString *)errorMsg errorLine: (int*)errorLine errorColumn: (int*)errorColumn;
- (BOOL) setContent: (NSString *)text namespaceProcessing: (BOOL)namespaceProcessing ;
- (BOOL) setContentFromIODevice: (QIODevice *)dev namespaceProcessing: (BOOL)namespaceProcessing errorMsg: (NSString *)errorMsg errorLine: (int*)errorLine errorColumn: (int*)errorColumn;
- (BOOL) setContentFromIODevice: (QIODevice *)dev namespaceProcessing: (BOOL)namespaceProcessing ;
- (BOOL) setContent: (NSString *)text errorMsg: (NSString *)errorMsg errorLine: (int*)errorLine errorColumn: (int*)errorColumn;
- (BOOL) setContent: (NSString *)text ;
- (BOOL) setContentFromByteArray: (QByteArray*)text errorMsg: (NSString *)errorMsg errorLine: (int*)errorLine errorColumn: (int*)errorColumn;
- (BOOL) setContentFromByteArray: (QByteArray*)text ;
- (BOOL) setContent: (NSString *)text errorMsg: (NSString *)errorMsg errorLine: (int*)errorLine errorColumn: (int*)errorColumn;
- (BOOL) setContent: (NSString *)text ;
- (BOOL) setContentFromIODevice: (QIODevice *)dev errorMsg: (NSString *)errorMsg errorLine: (int*)errorLine errorColumn: (int*)errorColumn;
- (BOOL) setContentFromIODevice: (QIODevice *)dev ;
- (int) nodeType;
- (BOOL) isDocument;
- (NSString *) toString;
- (NSString *) toCString;
@end

#endif
