Last time, we have successfully retrieved a value from the database by calling the executeQuery in the Statement object and make use of the ResultSet object to store the returned values. so how about insert, update and delete?
Continue reading JDBC – Java Database Connectivity @ 2
JDBC is an API for Java and it defines how your Java application make connection to the database in order to query or update the data.
In the following example, it shows you how to get a value from the database using the JDBC API. To make use of the API, you have to download the JDBC driver of your database. Postgresql Database is used in this example. so the postgresql-8.4-701.jdbc3.jar is added to the eclipse project.
Continue reading JDBC – Java Database Connectivity @ 1
Most of the time, the xml contains node attributes other than node values. The following example shows u how to get the node attributes in xml.
Continue reading JAXP – Java API for XML Parsing @ 2
To parse an xml in java, we can make use of the JAXP – Java API for XML Parsing. The JAXP provides 2 standards which are SAX and DOM respectively. Here is the sample code which parses an xml using the DOM standard.
Continue reading JAXP – Java API for XML Parsing @ 1