Can I use dot.exe to produce svg output that does not have the doctype etc?

When I use dot.exe to output svg (dot.exe -Tsvg) I get output that contains an xml declaraction and DocType as well as the actual svg content (shown below)

Is it possible to instruct the renderer only render the svg element and it's contents, not the doctype and xml declaration? I want to use the svg element inside a div of an existing html page.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>


Sorry, no. If you had access

Sorry, no. If you had access to tools like sed or awk, removing the unwanted lines would be simple. These are available by default on non-Windows systems, but there are various versions of these available for Windows. Also I believe Windows Powershell can be used to do anything awk can do.

Recent comments