About validating XML file

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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top