Hi,
In my ASP I (only) have this:
Response.Write "<?xml version='1.0'?>" & _
"<booklist>" & _
"</booklist>"
Despite I didnt had make: Response.ContentType = "text/xml", when I run my ASP I get a XML document... this is strange because, by default, what I should be sending to the browser would be HTML! However, I don´t say I want to send XML but I get it! Why? Is something about the parser version? asp.dll? It seems that the XML tags are now recognized by the parser or something else... but they werent´...right?
This way, If I want to send an XML data island Putting "<xml id="something"> at the beggining and "</xml> at the end of my response write I will get an error! Because it seems the browser was expecting to receive XML and not any other thing. I think that the logic was the browser to interpret that as HTML as I didn´t change the default contentType.
This way, if I want to send an XML data Island I will have to put <html> and </html> at the beggining and at the end of my response.write... I think I shouldnt need to do this, as I saying to the browser (by default) that everything that he wiil receive will be ... html.
By other words... Im confused! What was logic is not any more...
Sergio Oliveira
In my ASP I (only) have this:
Response.Write "<?xml version='1.0'?>" & _
"<booklist>" & _
"</booklist>"
Despite I didnt had make: Response.ContentType = "text/xml", when I run my ASP I get a XML document... this is strange because, by default, what I should be sending to the browser would be HTML! However, I don´t say I want to send XML but I get it! Why? Is something about the parser version? asp.dll? It seems that the XML tags are now recognized by the parser or something else... but they werent´...right?
This way, If I want to send an XML data island Putting "<xml id="something"> at the beggining and "</xml> at the end of my response write I will get an error! Because it seems the browser was expecting to receive XML and not any other thing. I think that the logic was the browser to interpret that as HTML as I didn´t change the default contentType.
This way, if I want to send an XML data Island I will have to put <html> and </html> at the beggining and at the end of my response.write... I think I shouldnt need to do this, as I saying to the browser (by default) that everything that he wiil receive will be ... html.
By other words... Im confused! What was logic is not any more...
Sergio Oliveira