XML technologies / SVG / Creating simple SVG graphics / Creating a template for SVG files

(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)

If you want to create your SVG graphics with a simple text editor or an XML editor, create a file defining the basic SVG file structure that you can then use as a template for all files. Such a template should contain the following, defining an XML document of type SVG.

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
<svg width="500" height="500">
  ...
</svg>

Save this file as plain ASCII without formatting and with the filename extension .svg. For example, name it vorlage.svg. Later, when creating SVG graphics, open this template and save it under a new name. This creates a copy in which you can make the necessary adjustments.

   

 

 

 

back to top