How do you relate Java with XML?

K V R K Varma

Java and XML make a good pair because Java provides portable code and XML provides portable data. Java code can run on any OS and hardware platform with a Java Virtual Machine. In addition, Java provides the most robust set of API's, parsers, processors and tools for XML. Both Java and XML have limitations if taken separately. In Java the developer has to handle network data formats. JavaServer Pages do not provide a real separation of content and presentation layers. XML tools handle these tasks for Java.