Read a TMX File

import net.sf.locale4j.format.Tmx20;
import net.sf.locale4j.storage.LocaleStore;

import java.io.FileInputStream;

import java.util.Locale;

public class HelloWorld {

        public static void main(String[] args) {
        
                FileInputStream istream = new FileInputStream("translations.xml");
                LocaleStore store = new Tmx20().read(istream);
                istream.close();
        
                String helloWorld = store.get(Locale.ENGLISH, "helloWorld");
                System.out.println("[en]" + hellowWorld);
        
                helloWorld = store.get(Locale.SPANISH, "helloWorld");
                System.out.println("[es]" + hellowWorld);
        
        }
        
}