How to verify a xml file with another Schema

A

ad

I have a xml file, it have a DTD declaration like below

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HealthData SYSTEM "Health.dtd">
....

Now I want to verify the xml file with another Schema file when use
XmlValidatingReader.

But when I verify schema file, it will always report an error about that
there is a DTD declaration.

How can I catch these exception and ignore it?

or how can I delete the dtd delcaration before vailidate it?
 

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

Members online

Forum statistics

Threads
474,266
Messages
2,571,087
Members
48,773
Latest member
Kaybee

Latest Threads

Top