[jdom-interest] DocType Modification

Kevin Baynes kbaynes at seagullsw.com
Tue Jun 12 11:32:37 PDT 2001


Ted-

Thanks for the response. :-)  Still not there yet, though.

I tried:

<!DOCTYPE groups SYSTEM "./groups.dtd">
and
<!DOCTYPE groups SYSTEM "../data/groups.dtd">

and (respectively) got back:

<!DOCTYPE groups SYSTEM
"file:/C:/jakarta-tomcat-4.0-b1/webapps/kalispell/data/./groups.dtd">
and
<!DOCTYPE groups SYSTEM
"file:/C:/jakarta-tomcat-4.0-b1/webapps/kalispell/data/../data/groups.dtd">

-Kevin

> -----Original Message-----
> From: Ted Erickson [mailto:ted at longhairtech.com]
> Sent: Tuesday, June 12, 2001 8:20 AM
> To: 'Kevin Baynes'
> Subject: RE: [jdom-interest] DocType Modification
>
>
> Use a relative path.  What we do is use:
> <!DOCTYPE GENERIC SYSTEM "../CBA.dtd">
>
> In your case I would suggest:
> <!DOCTYPE users SYSTEM "/users.dtd">
>
> And yes, we are using Tomcat in production.
>
> Ted Erickson
>
> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Kevin Baynes
> Sent: Tuesday, June 12, 2001 12:10 PM
> To: Jdom-Interest
> Subject: [jdom-interest] DocType Modification
>
>
> I have an XML document with the following doctype declaration:
>
> <!DOCTYPE users SYSTEM "users.dtd">
>
> After using JDOM to open and modify the contents, JDOM writes the doctype
> as:
>
> <!DOCTYPE users SYSTEM
> "file:/C:/jakarta-tomcat-4.0-b1/webapps/kalispell/data/users.dtd">
>
> Why does this happen?
> Is my usage incorrect?
> Is there a way to prevent this?
>
> thanks!
>
> --------------------
> Kevin Baynes
> Software Engineer
> kbaynes at seagullsw.com
> 703-393-2191
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yourad
dr at yourhos
t.com




More information about the jdom-interest mailing list