1

I have an XML document and want a visual representation (eg. an SVG graphic). Eg.

<set>
   <A>
      <B>bla</B>
      foo
   </A>
   <A>blub</A>
</set>

Should render to something like:

enter image description here

or something similar like a dendrogram. I don't have any preferences regarding the technology. The easiest way will do.

kjhughes
  • 106,133
  • 27
  • 181
  • 240
r0f1
  • 2,717
  • 3
  • 26
  • 39

1 Answers1

2

As @Javier suggested in the comments, checkout Graphviz. Specifically:

  1. Write XSLT to map from your XML to DotML, an XML representation of the DOT graph description language. You can validate DotML against the DotML schema.
  2. Run generate-svg-graphics.bash, which uses generate-svg-graphics.xsl, to convert from DotML to SVG.

See also: Michael Kay's DotML ant build.

Community
  • 1
  • 1
kjhughes
  • 106,133
  • 27
  • 181
  • 240