With Java’s properties files and ResourceBundleLists class, you can efficiently manage translatable text in your Java applications. Because the properties files and ResourceBundleLists class are an extensible framework, you also can adapt them to suit your particular needs. Thus, you can easily make your Java code work with translatable text in various formats, such as XML.
The mechanism that allows you to work with your preferred file format(s) in Java 6 is the ResourceBundle.Control
object, which you can use in conjunction with the properties class to access XML files with ease. In his WebReference.com article, Rob Gravelle explains how to use the Java 6 ResourceBundle.Control object in conjunction with the properties class to access XML files.