I would like to be able to use the C version of Tidy inside of Java code. Before anyone mentions it I'm well aware of the JTidy implementation but many of the the known bugs I read for it prevent me from using it, plus I'd prefer to maintain 100% compatibility with the C version.
I found the following mail on the issue http://sourceforge.net/mailarchive/message.php?msg_name=18.104.22.168.2.20021017135817.020b1d40%40pop.rcn.com but don't know enough about SWIG to get this working at the moment so I was hoping someone has already managed this and could spell out more clearly what the steps are to get the code working with Java.
My alternative is using JNI directly, I made a brief start on this before I realised just how little C I know. If anyone has got a working JNI implementation they would like to share that would also be great.
If I can get it working I would be happy to maintain a JNITidy or JSWIGTidy type package for Win32 and linux x86, maybe even sparc solaris.