[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file magic for SVG

From: Christos Zoulas
Subject: Re: file magic for SVG
Date: Tue, 28 Jun 2005 12:15:05 -0400

On Jun 28,  2:23pm, address@hidden (Alan Horkan) wrote:
-- Subject: Re: file magic for SVG

| > | 0       string/cB       \<!DOCTYPE\ svg         SVG image data
| > | 0       string/c        \<svg                   SVG image data
| >
| > What the specification? Is <svgfoo> a valid SVG file?
| I dont have hte specifications memorised but I can tell you most of the
| SVG files I have are roughly of the form
| <?xml version="1.0"?>
| <!DOCTYPE svg   ...
| <svg   ...
| with the all the usual variations from the <?xml ?>
| I believe the doctype is strongly recommended but not strictly
| required, and is of the following form but often includes many other
| namespaces such as Xlink, Dublin Core and others and sometimes other junk.
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
|         "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";>
| The <svg> almost always includes extra information, some kind of height
| width dimenions or a view box size.
| Quite a few programs insert a comment between the doctype and the <svg>
| tag and put some sort of advertising/generator information there.
| So as you can see my effort (much like the existing magic for HTML) will
| only identify a few very contrived versions of SVG and I badly need help
| making it more robust.

Why don't you try a "search" match?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]