0

My xml and DTD are place in the same folder. They are part of a plugin jar. I need to refer to this DTD from the xml. In this case what should the Doctype in the xml look like.

mangala shenoy
  • 325
  • 6
  • 11

1 Answers1

0

courtesy of: Referring to a local DTD in Java

When dealing with Web Apps, you can put the dtd in the lib folder and refer to it like:

<!DOCTYPE name PUBLIC 
    "-//CMP//DTD dtdName 1.0//EN"
        "/WEB-INF/lib/dtdName.dtd">
Community
  • 1
  • 1