Re: Java binding for SVG DOM

Dave,

The Java binding can be generated from the IDL  with a tool such as Sun's idltojava. This requires some clean-up of the IDL but it works
(detailed instructions below). The SVG Working Group is working on the IDL cleanup and the Java binding.

I hope this helps.
Regards.
V.

PS. Detailed instructions on using idltojava for getting the Java bindings from the SVG IDL:

You should add the following pragma to the idl source:

#pragma javaPackage "dom.w3c.org"

to generate the files in the proper java package (i.e., dom.w3c.org.svg).

Once the files have been generated (with idltojava), you will need to do the following
through a script:

1. Delete all the _XXX.java, XXXHelper.java and XXXHolder files (only
used for CORBA).
2. Strip the "extends org.om.CORBA.Object,
org.omg.CORBA.portable.IDLEntity from the remaining java files.

idltojava is available at:

http://developer.java.sun.com/developer/earlyAccess/jdk12/idltojava.html


--
+-----------------------------------------------------------+
| Vincent Hardy                   vincent.hardy@eng.sun.com |
| Scalable Vector Graphics      XML Technology Center (XTC) |
| 650-786-4066                                   Menlo Park |
+-----------------------------------------------------------+

Received on Tuesday, 22 February 2000 17:01:39 UTC