I need to read XML data by using java.
This is my XML file snippet.
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- Database connection settings -->
<property name="hibernate.connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://192.168.1.55/tisas</property>
<property name="connection.username">root</property>
<property name="connection.password">xxyy</property>
<property name="show_sql">false</property>
I need to get the value(jdbc:mysql://192.168.1.55/tisas) from the xml file using java. how can i get it?