Hi Bernd,
Bernd Eilers wrote:
Hi Giuseppe,
if you want to use the OpenOffice.org UNO API for accessing ODF Packages
have a look at the Package file format interfaces and services here:
http://api.openoffice.org/docs/common/ref/com/sun/star/packages/module-ix.html
I had a look at the documentation, but I could not make out how to use
the service Package. I didn't find anything regarding the arguments that
should be used when instantiating the Package service or using its
XInitialization interface.
Besides it uses a deprecated XSingleServiceFactory interface, is it safe
to use it?
If reading and manipulating the XML Streams contained in an ODF File
using java tough is all you want to do you might also have a look at
odf4j as an alternative lightweight approach.
http://wiki.services.openoffice.org/wiki/Odf4j
ODF4j provides a simple java API for ODF Documents that doesn´t require
an OpenOffice.org installation. ODF4j is a project which is not yet
finished but accessing XML Streams contained in ODF Packages is
something which already works well and there are also helper classes for
applying XSL-Transformations to those streams or methods to get them as
W3C DOM tree, there is stuff for handling of the Manifest file etc. and
some simple samples are also available.
I had a look to the ODF toolkit, but we need to access all the ODF
component, the embedded pictures as well, for example, and not only the
xml components, so using UNO stuff should be better.
The goal is to sign the ODF file with a different signature method than
the one available in OOo.
--
Kind Regards,
Giuseppe Castagno
Acca Esse http://www.acca-esse.eu
[EMAIL PROTECTED]
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]