[jdom-interest] Question of DTD

dongst jdst12 at sohu.com
Mon Jun 3 02:23:37 PDT 2002


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...)> 

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

and I put the dtd file to the directory of the class and java file.

why and how can I do?

By the way, how can I change a xml file 's encoding, for default, it is UTF-8?

Jack Dong
jdst12 at sohu.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20020603/f072b476/attachment.htm


More information about the jdom-interest mailing list