Discussion:
what wrapper does msxml2 require in CGI to work
(too old to reply)
Guimar
2005-11-02 02:29:03 UTC
Permalink
I have a CGI application that needs to return xml in VsC6.0.
If I send the data in an html wrapper the javascript sees it but cant parse
it.
I Cant find any documentation what the preamble needs to look like so msxml2
can recognize the response as xml and parse the data.

If I send the XML without a header I get back an HTTP header 500 error

If I have the CGI program save the data to a file and use another
javascript call to request the textfile it reads and parses correctly.
Martin Honnen
2005-11-03 19:47:03 UTC
Permalink
Post by Guimar
I have a CGI application that needs to return xml in VsC6.0.
If I send the data in an html wrapper the javascript sees it but cant parse
it.
I Cant find any documentation what the preamble needs to look like so msxml2
can recognize the response as xml and parse the data.
If you send XML then use an XML MIME type for the HTTP Content-Type
header e.g.
Content-Type: application/xml
or
Content-Type: text/xml

That way a HTTP client receiving the HTTP response knows to parse it as XML.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Loading...