PDA

Click to See Complete Forum and Search --> : [RESOLVED] Validation of XML submitted to IIS


riis
Sep 9th, 2004, 03:15 AM
Hi all,

At the moment I'm creating an ISAPI app which has to parse XML data submitted by some client. I'd like to validate the data using schemas and I'm wondering what I should do. I know how to create schema's, and some examples I've made validate fine within XMLSpy.

My question is how IIS will know where to obtain the schema documents. Is IIS using the namespace location for the schema document, or is there some other way? If the first case is true, then I won't be glad. The namespace URL will of course by my company's website URL, appended with something else (for example: http://www.bigcompany.com/mynamespace). I've understood that the actual namespace location should only be used as a "hint".

So I think there should be another way, and I'm wondering what that one could be.

riis
Sep 9th, 2004, 03:48 AM
I was just thinking: if IIS would use the hint, then it would need internet access as a client. That is out of the question of course. So if there's a way, it is not using the hint.

riis
Sep 9th, 2004, 04:16 AM
I've found it. It is possible to manually associate schema documents to an XML DOMDocument, and then its validate method will perform the actual validation :)
http://www.perfectxml.com/CPPMSXML/20020715.asp