Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 56979 invoked from network); 19 Oct 2000 17:26:36 -0000 Received: from mta5.rcsntx.swbell.net (151.164.30.29) by locus.apache.org with SMTP; 19 Oct 2000 17:26:36 -0000 Received: from brak ([216.60.111.107]) by mta5.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with SMTP id <0G2O009IRQRYZY@mta5.rcsntx.swbell.net> for general@xml.apache.org; Thu, 19 Oct 2000 11:21:34 -0500 (CDT) Date: Thu, 19 Oct 2000 11:22:00 -0500 From: Eric Hodges Subject: RE: Yet another question about creating a Document In-reply-to: To: general@xml.apache.org Message-id: MIME-version: 1.0 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset="iso-8859-1" Content-transfer-encoding: 7bit Importance: Normal X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Priority: 3 (Normal) X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Can anyone tell me why DOMImplementation.createDocument() creates an element in the Document? I can work around it by removing the element every time I call this, but it makes me think I'm not using it correctly. > > After I call DOMImplementation.createDocument(null, "test", docType), the > resulting document already has a docElement. It's an Element > with the name > "test" in it. Since Documents can't have more than one > docElement, I can't > add any elements to the new Document. > > How do I make a document and specify the document type?? Anyone have any > examples? > > > --------------------------------------------------------------------- > In case of troubles, e-mail: webmaster@xml.apache.org > To unsubscribe, e-mail: general-unsubscribe@xml.apache.org > For additional commands, e-mail: general-help@xml.apache.org >