In Java JDK there are two built-in XML parsers. In Java, it's still simpler than that due to Java's tough Unicode support. You don't want to know any particular APIs like DOM or SAX or JDOM. All you have to be recognizable with how to System.out. println(). If you want to pile up your XML document in a file, you can use the FileOutputStream class instead. Here I am showing the A program that calculates the Fibonacci numbers using the XML with Java. Code: import java.math.BigInteger; public class FibonacciNumbers { public static void main(String[] args) { BigInteger low = BigInteger.ONE; BigInteger high = BigInteger.ONE; for (int i = 1; i <= 10; i++) { System.out.println(low); BigInteger temp = high; high = high.add(low); low = temp; } } } I realized that XML with Java is not complicated but it is useful for developing such kind of Program.