GraphViz SiteMap Generator now produces SVG

I actually spent 15 minutes to modify the GraphViz SiteMap Generator so that it will produce working SVG Diagrams like this.. Have to figure out how to specify the font size and overlap options in the SVG file, however because the text on the boxes is enormous.

The basic fix I did in this version was to go through the SVG that GraphViz generates and remove an HTML comment produced in the file. PHP I used came from this thread about using PCRE library to remove HTML comments with PHP:

$infile= preg_replace('//', '', $infile);

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <b> <strong> <dd> <dl> <dt> <i> <li> <ol> <u> <ul> <code> <blockquote> <fieldset> <legend> <h6> <span> <img> <div> <p>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options