I would like to be able to have an XML string as follows:
I have defined a DTD for this string which I will be getting via a web service. Now I want to validate this string against my local DTD file and also override any DOCTYPE references that anyone may choose to put in the XML string (they can't if they use my client but if someone malicious gets authenticated and tries something no one has thought of, there is a potential for this web service to compromise a lot of information)
I hope you understand what I mean here.
Basically I want something like this (pseudo-code):
oXML = LoadXML(sXML);
... allow ...
throw exception ("You bastard, you didnt use my client");
I would prefer examples in C#