XML technologies / SVG / SVG basics and possible applications / What is SVG? / The DOM enables script access

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

Scripts can control a graphic because an SVG graphic has a DOM. The DOM provides objects and methods for manipulating the graphic and adding or removing elements.

The SVG DOM also has events for responding to user actions. For example, perform an action on a mouse click or let users rearrange graphic elements by dragging and dropping.

DOM access is not limited to JavaScript or VBScript in a web page. Any object-oriented programming language can access the object model, such as VBA, Visual Basic, Java or C++. This makes SVG especially interesting for developers.

   

 

 

 

back to top