XmlTextReader: How to ignore DTDs.

  • Thread starter Thread starter Philipp
  • Start date Start date
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
 
Check out XmlTextReader.MoveToContent();

Greg

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