|
Hey
John, That’s
just the problem i had too using batik. (actually it’s
one of the many problems I had). Though an experienced Java Developer, I could
not tame the batik framework, spending a month trying to get it to do what I needed.
My suggestion: there is another framework for Java / SVG out there. Its available at http://sis.cmis.csiro.au/svg
. Although it’s development was stopped 2002, it’s
just as complete as batik (some features are missing, but then there are others
batik is lacking). The SVGToolkit, as it is called,
is *** much *** less complex than batik. It took me a day to port all my batik
code to SvgToolkit and get it running…. Give
it a try, it worked fine for me ;-) Greetz, Yinka
Martins. -----Urspr�ngliche Nachricht----- Hi, I have 30+ years of software experience but am a
beginner at JAVA and BATIK and mailing lists . This is my first graphics
program. (I have read the BATIK FAQ but quite a lot of it has no meaning for
me.) The program appears to work when I do not
attempt to generate the XML. i.e the frame displays what I am expecting. I am
trying to capture the XML in order to view the diagram in a browser. I have
followed http://xml.apache.org/batik/svggen.html
. When I try to generate the XML after displaying
the output, there are no exceptions raised or other messages but all I
get is : <?xml version="1.0"
encoding="UTF-8"?> <!DOCTYPE svg PUBLIC '-//W3C//DTD SVG
1.0//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>
<!--Generated by the Batik Graphics2D
SVG Generator--> Here are my imports and what I think to be the
relevant bit of the main method: package helen; SVGGraphics2D g = new
SVGGraphics2D(doc); Diag d = new Diag(g, xlim,
ylim, xorig, yorig, 3600); // Draw into g. For example: // The following populates the document
root with the // Now, display the document Any suggestions please? John |
Title: Failure to generate XML after using SVGGraphics2D apparently OK.
- Failure to generate XML after using SVGGraphics... Jones, John JH SITI-ITADED
- RE: Failure to generate XML after using SV... Yinka Martins
- RE: Failure to generate XML after using SV... Jones, John JH SITI-ITADED
- RE: Failure to generate XML after using SV... Baron, Randy {PRG~Basel}
