Convert Properties file to XML in Java

In Java, you can store a properties file in XML format. This is not know to many developers and knowing this is handy. Here is an example demonstrating the use of this. Java Source

Output

Reference http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Properties.html