Parse xml document without getting the files referenced in the DTD

A

AK

Hello,

I want to remove the DTD reference from an xml document before
validating it against a local schema instead. Currently I'm first
creating an xml document and removing the DTD reference, then creating
the XmlReaderSettings with the schema etc.

However, the reason I want to remove the DTD reference is that it
takes up to a minute to grab all the files referenced in it, and when
loading the xml document it still goes and grabs them. Is there any
way of parsing an xml document and remove the DTD reference without it
trying to fetch all the files?

Many thanks,

AK
 
M

Martin Honnen

AK said:
I want to remove the DTD reference from an xml document before
validating it against a local schema instead. Currently I'm first
creating an xml document and removing the DTD reference, then creating
the XmlReaderSettings with the schema etc.

However, the reason I want to remove the DTD reference is that it
takes up to a minute to grab all the files referenced in it, and when
loading the xml document it still goes and grabs them. Is there any
way of parsing an xml document and remove the DTD reference without it
trying to fetch all the files?

You asked the same question yesterday and got an answer for that:
http://groups.google.com/group/micr...csharp/browse_thread/thread/f930b43a73c844eb#
 

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