How to verify a xml file with another Schema

Discussion in 'ASP .Net' started by ad, Jun 9, 2005.

  1. ad

    ad Guest

    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

    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?
    ad, Jun 9, 2005
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page