XSLT (Extensible Stylesheet Language Transformations) is used to transform XML files into other formats like HTML format. There are many XSLT processors (libraries) available to be used in Java for XSLT transformation. These libraries can be used from a Java application like JSP/Servlet to read a XML file and to transform it into a HTML.
An XSLT processor takes two inputs: an XML file and an XSLT stylesheet.
For this post, I have chosen Xalan-Java library for the transformation.
If you plan to run an application with Java Web Start, you have to create JNLP (Java Network Launching Protocol) file. In this post, I will briefly explain how to do that.
The JNLP file is an XML file and it contains elements and attributes that tell Java Web Start how to run the application.
Presented below is a JNLP file for the Notepad application:
<!--?xml version="1.0" encoding="utf-8"?--> Java Code: <jnlp spec="1.0">codebase="URL
XML files are very useful. Usually they are used to store configuration settings. We can also use XML files to store data so it can be used as a database. A lot of work has been done in this domain and its really very useful working with XML files.
Now suppose you have a XML file with some useful data.
college.xml XML Code: <college>