manish
hi,i'am new to Jsp.Can some one please let me know an answer for this question?
1 Answer(s)      a year and 10 months ago
Posted in : JSP-Servlet

how do we upload an xml file and validate them against WIPO DTD

Advertisement
View Answers

October 6, 2013 at 11:07 AM


Hi,

Please see the example for uploading a file on Server: File Upload Tutorial With Examples In JSP.

You can use the following code for validating xml against DTD:

  DocumentBuilderFactory.newInstance();
  factory.setValidating(true);

Read XML Validate DTD example to see the complete code for validating XML using DTD.

Thanks