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
Continuing from my previous post, I will demonstrate how you can declare transactions in XML using Spring. Continuing from the previous tips on transaction attributes, letís dive straight in. Spring has a tx configuration namespace to simply declaring transactions in Spring. It is recommended that you include the aop namespace as well since some of the declarative transaction configuration elements use AOP configuration elements. The following shows how <tx:advice> is used for the Car service.
Updated 11-27-2011 at 10:36 PM by Spring Framework
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>