I just fixed the way the Doctype tag is added to a Document. I added a
setDoctype method. This is in cvs.
----- Original Message -----
From: Chris Chiu <[EMAIL PROTECTED]>
To: ECS <[EMAIL PROTECTED]>
Sent: Tuesday, April 04, 2000 2:46 PM
Subject: How to use Doctype?
I am not sure how to use Doctype. The API doc has this code:
Document d = new Document()
.addElement(new Doctype.Html40Strict())
.addElement(new Html( ...
but Document class does not have addElement method. None of the methods
that Document has seems appropriate because Doctype goes before both the
header and the body. Any suggestions?
--
Chris Chiu
Process Simulations Ltd.
204-2386 East Mall
Vancouver, BC V6T 1Z3
Tel: (604) 822-1312
Fax: (604) 822-1934
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]