Results 1 to 3 of 3

Thread: [RESOLVED] Validation of XML submitted to IIS

  1. #1

    Thread Starter
    Fanatic Member riis's Avatar
    Join Date
    Nov 2001
    Posts
    551

    [RESOLVED] Validation of XML submitted to IIS

    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.
    Last edited by riis; Sep 9th, 2004 at 04:17 AM.

  2. #2

    Thread Starter
    Fanatic Member riis's Avatar
    Join Date
    Nov 2001
    Posts
    551
    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.

  3. #3

    Thread Starter
    Fanatic Member riis's Avatar
    Join Date
    Nov 2001
    Posts
    551
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width