Before anybody shouts this is FAQ or similar, then..

I receive some XML from another source, so first of all, I would like to
parse it against a DTD.

The examples I have found requires that in order to use the
XmlValidatingReader, the DTD must be declared in the XML as a
<!DOCTYPE...

This means that I have to do a test to check if the XML file already has
a DTD or SCHEMA reference, and if not put in the reference for the DTD I
would like to validate against, before calling the XmlValidatingReader.

I haven't found any clues on how to do the check and replace, so any
tips in how I can do this is appreciated.
Also if anybody has another way of doing this, I would like to hear it.

</thomas>

---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/


Reply via email to