title: How can I export a JavaFX node to an SVG image?
body: <p>In other words, I'm trying to do something with JavaFX like what <a href="http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/svggen/SVGGraphics2D.html" rel="noreferrer">Batik allows you to do with Swing.</a></p>
  
  <p>I want to be able to capture the appearance of an arbitrary node in my JavaFX UI, much like <a href="http://docs.oracle.com/javafx/2/api/javafx/scene/Node.html" rel="noreferrer">Node.snapshot()</a> does, except that I need my image in a vector format like SVG, not a raster image.  (And inserting a raster snapshot of my node into an SVG image is not good enough; it needs to be a proper, scalable vector image.)</p>
  
  <p>This is a long-term project, so I'm even willing to go as far as implementing my own <a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html" rel="noreferrer">GraphicsContext</a>, or whatever the equivalent is in JavaFX's retained mode API.</p>
  
  <p>Does anyone know if there is a way to do this? Is what I'm hoping to do even possible in JavaFX?</p>