/xml

DOM wrapper around the standard library encoding/xml and an SVG parser/renderer

Primary LanguageGoApache License 2.0Apache-2.0

xml

Go Reference godocs.io Go Report Card

Wrapper around encoding/xml.Decode to facilitate the Inversion of Control pattern and provide a domain object model builder.

The enclosed svg package is a simplistic SVG11 renderer that can parse a DOM from the above. The following elements are (mostly) supported: svg defs use g line rect circle ellipse polyline polygon path clipPath

The svgrender command (xml/svg/cmd) can read either the standard input or the supplied file and render it to svgrender.png.