XmlTextReader: How to ignore DTDs.



Given an xhtml document with a doctype declaration:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

XmlTextReader will read the dtd and fail if it can't (for
e.g. no connection to the internet.)

How can this feature be turned off so that DTDs are not
read at all?

Thanks for your replies.


Greg Beech [MSFT]

Check out XmlTextReader.MoveToContent();


This posting is provided "as is" with no warranties and confers no rights.

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