I'm new to Java.
I have learned Java & Servlet/JSP. Currently I'm reading XML.
Could you please tell me where XML is used/it's role, I know that it's used for data transformation.
Can you suggest a practical example / a link so that I can get a clear idea.
The eXtensible Markup Language (XML) is a simplified form of SGML and is a meta-language for creating markup languages. Examples of markup languages are:
the elements and attributes of a Java web application's web.xml file, the elements and attributes of a Struts configuration file, SOAP, WSDL, FpML, DocBook, BPML, etc. These are commercial examples of XML-based markup languages, there are many, many others. And many proprietary ones that are specific to internal apps at a specific company,
Aside, the actual languages are used to describe data, not transform it. There are transformation tools and concepts that work with XML-based data to execute data transformation. However, this is what is "done" with data in XML-format, not the purpose of XML itself. There are many other ways it is used, the Java web apps web.xml file is a good example.