XmlTextReader: How to ignore DTDs.

P

Philipp

Given an xhtml document with a doctype declaration:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

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.

Philipp
 
G

Greg Beech [MSFT]

Check out XmlTextReader.MoveToContent();

Greg

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

Top