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.
Asked
Active
Viewed 276 times
1 Answers
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

guillaume girod-vitouchkina
- 3,061
- 1
- 10
- 26