Create SDLXliff files with Java

As a developer for a Java program, we would like to be able to automatically create SDLXliff files from an XLIFF (inculding a TMX).

Are there any API's available for Java or is there a detailed specification of the SDLXliff format available?

Thank you in advance.