There are many things which can shows relation between XML and JAVA. One of the main relation between XML and JAVA is that
XML and the Java Technology are complementary.
XML and Java technology have a numbers of shared features that make them the ideal pair for web computing,including being
industry standards,platform independence,extensible,reusable,web-centric and internationalized.