in reply to Data Exchange between perl and java.

I deal a fair bit with Java coders here, and so end up throwing vast amounts of data round to them in XML form. The best way of doing this seems to simply be using a good compliant module for XML production, my personal recommendation based on experience being the XML::LibXML module, although this does require the libxml c library to function so getting it installed can be a challenge with strict sysadmins.