I am using nokogiri
to generate svg pictures. I would like to add the correct xml preamble and svg DTD declaration to get something like:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg>
...
With builder
I could use instruct!
and declare!
but I want to stick with nokogiri
because I use it for other purpose in my project and I want to stay low on requirements. Do you have some ideas ?
Thanks