Hi, I'm exercising XmlTextReader / XmlDocument combo. When the local XML
data file doesn't have DOCTYPE declaration, everything go fine and fast.

But when I included DTD in the data file, say (here SVG document),

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>

the whole process of retrieving the remote DTD (and subsequent modules)
and parsing takes uncomparably long. More seriously, it even throws
exception when I don't have network connection.

How can I bypass the whole DTD processing of XmlTextReader? I know by
setting XmlResolver of XmlTextReader to a new resolver, I can get the
effect of replacing remote URIs with local ones. Is there any cleaner
solution to it?

Thanks!

--
Isaac Hwak Han
mailto:[EMAIL PROTECTED]
http://www.technonia.com

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to