About validating XML file

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I wnat to let user upload a xml file, and import data in the the xml file
into database.
I want to require user the xml file must contain a declaration of dtd in the
xml like below:
<?xml version='1.0' encoding='utf-16'?>
<!DOCTYPE Product SYSTEM "Product.dtd">

How can I check if the xml contain a dtd declaration ?
 
Back
Top