[jdom-interest] Question of DTD

Alex Rosen arosen at silverstream.com
Mon Jun 3 08:43:19 PDT 2002

-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]On
Behalf Of dongst
Sent: Monday, June 03, 2002 5:24 AM
To: jdom-interest at jdom.org
Subject: [jdom-interest] Question of DTD

hi, all

I used jdomb8 to create a xml file,but I got a unnormal result.
the code is below:
> DocType type = new DocType("Test","test.dtd");
> the result is:
>  <!DOCTYPE Test (View Source for full doctype...)>

Are you saying that the entire test.dtd was read in and put into the DOCTYPE

> I think it would be:
>  <!DOCTYPE Test SYSTEM "fibonacci.dtd">

I assume you mean "test.dtd" instead of "fibonacci.dtd"? That's what I would
expect too.

> By the way, how can I change a xml file 's encoding, for default, it is

Read the JavaDoc for XMLOutputter.


More information about the jdom-interest mailing list