0

Is there any way to validate an XML file with its DTD, using a JSP in Eclipse? If so, how can we do it?

Rohit
  • 155
  • 2
  • 7
  • Do you mean programmatically validate a file when running inside the container, or validate an XML file in Eclipse? – skaffman Jan 02 '10 at 21:34
  • its verification of xml document based on the given structure(i.e., DTD) – Rohit Jan 03 '10 at 04:19

1 Answers1

1

Did you try:

  1. Specify the DTD at the top of the jsp, as if it is a regular XML document;
  2. right-click the jsp > Validate.
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140