>Let me clarify what it is I'm trying to do. My servlet tells the browser I'm
>sending xml content, then it sends <?xml version="1.0"?> then it sends it
><!DOCTYPE <xxxx> SYSTEM "xxxxx.dtd"> this is where the browser barfs, it
>can't find the xxxx.dtd file.  I've placed the DTD file in the same
>directory as the servlet. (?) I don't know where I need to put it. Thanks

Presumably the browser is looking in a directory on the browsers machine
for the DTD file, since "SYSTEM 'xxx.dtd'" means this is an external ID.
The content of the quoted string is used as is, and is not parsed.  Thus by
this mechanism you are telling the browser to look in it's current <system>
directory for the file named 'xxxxx.dtd'.

Perhaps you could send the DTD as an internal DTD.  e.g.
<!DOCTYPE xxxx [
<!-- The content of the actual DTD would follow this line --->

<!-- The next line terminates the internal DTD -->
]>

See section 2.8 in the XML specification.


Peace

Marty Halvorson
New Mexico Supreme Court
Administrative Office of the Courts
Judicial Information Division
[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to