/***************************************************************************
                            QDomDocument.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 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 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

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

package org.kde.qt;

import java.util.*;
import java.lang.Error;

public class QDomDocument extends QDomNode  {
	protected QDomDocument(Class dummy){super((Class) null);}

	private native void newQDomDocument();
	public QDomDocument() {
		super((Class) null);
		newQDomDocument();
	}
	private native void newQDomDocument( String name);
	public QDomDocument( String name) {
		super((Class) null);
		newQDomDocument( name);
	}
	private native void newQDomDocument( QDomDocumentType doctype);
	public QDomDocument( QDomDocumentType doctype) {
		super((Class) null);
		newQDomDocument( doctype);
	}
	private native void newQDomDocument( QDomDocument x);
	public QDomDocument( QDomDocument x) {
		super((Class) null);
		newQDomDocument( x);
	}
	protected native void finalize() throws InternalError;
	public native QDomElement createElement( String tagName);
	public native QDomDocumentFragment createDocumentFragment();
	public native QDomText createTextNode( String data);
	public native QDomComment createComment( String data);
	public native QDomCDATASection createCDATASection( String data);
	public native QDomProcessingInstruction createProcessingInstruction( String target, String data);
	public native QDomAttr createAttribute( String name);
	public native QDomEntityReference createEntityReference( String name);
	public native ArrayList elementsByTagName( String tagname);
	public native QDomNode importNode( QDomNode importedNode, boolean deep);
	public native QDomElement createElementNS( String nsURI, String qName);
	public native QDomAttr createAttributeNS( String nsURI, String qName);
	public native ArrayList elementsByTagNameNS( String nsURI, String localName);
	public native QDomElement elementById( String elementId);
	public native QDomDocumentType doctype();
	public native QDomImplementation implementation();
	public native QDomElement documentElement();
	public native boolean setContent( String text, boolean namespaceProcessing, String errorMsg, int[] errorLine, int[] errorColumn);
	public native boolean setContent( String text, boolean namespaceProcessing);
	public native boolean setContent( byte[] text, boolean namespaceProcessing, String errorMsg, int[] errorLine, int[] errorColumn);
	public native boolean setContent( byte[] text, boolean namespaceProcessing);
//	public native boolean setContent( String text, boolean namespaceProcessing, String errorMsg, int[] errorLine, int[] errorColumn);
//	public native boolean setContent( String text, boolean namespaceProcessing);
	public native boolean setContent( QIODeviceInterface dev, boolean namespaceProcessing, String errorMsg, int[] errorLine, int[] errorColumn);
	public native boolean setContent( QIODeviceInterface dev, boolean namespaceProcessing);
	public native boolean setContent( String text, String errorMsg, int[] errorLine, int[] errorColumn);
	public native boolean setContent( String text);
	public native boolean setContent( byte[] text, String errorMsg, int[] errorLine, int[] errorColumn);
	public native boolean setContent( byte[] text);
//	public native boolean setContent( String text, String errorMsg, int[] errorLine, int[] errorColumn);
//	public native boolean setContent( String text);
	public native boolean setContent( QIODeviceInterface dev, String errorMsg, int[] errorLine, int[] errorColumn);
	public native boolean setContent( QIODeviceInterface dev);
	public native int nodeType();
	public native boolean isDocument();
	public native String toString();
	public native String toCString();
}
