Re: SVG MIME types

Justin Friedl wrote:
> 
> The line <% Response.ContentType = "image/svg"%> does get stripped off.
> if I change the mimiType to "text/xml" the xml can be viewed in IE5 just
> fine without the extra line, which, I think, means that it is a well formed
> document?

What do other xml browsers, such as Netscape 5, do? Just to check that IE
isn't silently removing the extra line for you, client side.

> any suggestions?

Looks like you need to check exactly what and how it gets stripped off - is
there any character befor ethe < of the xml declaration? A space? a byte
order mark? To test this, write a small html file:

<a href="myurl">get it</a>

and right-click or whatever your browser does to save this to disk.
Ideally, don't use IE for this task, since it seems prone to rewriting
documents. Then look ina hex editor or something like that to see 

Its also possible that the Adobe viewer is not a conforming XML parser and
expects the xml declaration to be  the first thing in the file. I recall
that other things can be before it - whitespace, comments - so forth -
perhaps it is not handlingthis correctly.


> > The svg
> > view tries to render it but gets the following error in the status bar:
> > "xml processing instruction not at start of external entity: 
> > line 2, column  0"

--
Chris

Received on Friday, 14 April 2000 06:24:43 UTC