Another idea is the DOT language.
http://www.graphviz.org/doc/info/lang.html

Good for network diagrams with connecting lines. Afaik, it's svgable too.

Hacking svg xml is very technical too, but you can look into clones and perhaps use sed to drop sub drawings into a parent xml shell.

/d