I'm calling an XML script and parsing it in my servlet. Where do I put my DTD file so that my parser finds it? I am using Tomcat 3.1 and IBM's XML parser XML4J.

divya nagireddy

The DTD file should be placed in the default public_html or htdocs directory on the webserver. This directory is the public folder where all the html and jsp pages, along with other files that must be published to the client are placed. The DTD file can be accessed in the XML script as shown below.


  < !DOCTYPE Employee
    SYSTEM "http://host:port/Employee.dtd">
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact