W3C home > Mailing lists > Public > www-svg@w3.org > April 2000

Re: Problems viewing SVG files in XML viewers

From: Chris Lilley <chris@w3.org>
Date: Thu, 13 Apr 2000 18:25:52 +0200
Message-ID: <38F5F510.8BE0F7AF@w3.org>
To: naylor@uic.edu
CC: www-svg@w3.org, David Naylor <naylor@eecs.uic.edu>


David Naylor wrote:
> 
> This problem may have been addressed previously, but I cannot find any
> reference to it in the archives.
> 
> I have been trying to use several of the available XML editors and viewers
> to edit and view SVG files and seem to find a common problem among them all.

Actually it is encouraging that they all report the same error.

> When trying to open an SVG file in XML Spy I obtain the error message:
> 
>         The element 'svg' is used but not declared in the DTD/Schema
> 
> The SVG file starts out:
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 12August 1999//EN"
> "http://www.w3.org/Graphics/SVG/SVG-19990812.dtd">

The DTD is there at that URL, I just checked it again.

That sounds as if XML Spy is trying to locate the DTD, either to
validate against or to parse with. Are you online when you get this
error, or offline.

> When trying to open an SVG file in Microsoft's XML Notepad I obtain the
> identical error message.
> 
> When I use the IBM alphaworks XMLViewer the message in the Log Window is
> 
>         Element "<svg>" is not valid because it does not follow the rule,
> 
> "(defs?,desc?,title?,(path|text|rect|circle|ellipse|line|polyline|polygon|us
> e|image|svg|g|switch|a)*)".

That would imply that the file you are trying to view is not valid
according to the DTD.

> I have this problem not only with svg files produced by a beta SVG Export
> Plug-In, but also with example SVG files downloaded from
>         http://www.w3.org/TR/1999/WD-SVG-19991203/struct.html

Is this with all files, or just some files?

--
Chris
Received on Thursday, 13 April 2000 12:25:58 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:18 GMT