Re: Problems viewing SVG files in XML viewers

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"
> "">

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

Is this with all files, or just some files?


Received on Thursday, 13 April 2000 12:25:58 UTC