read xml file using java
===

   The following is my xml file format

    <?xml version="1.0" encoding="UTF-8"?>
    <Hospitals>
    <Hospital hospitalId="14">
		<HospitalName>aaa</HospitalName>
			<Department>
				<DepartmentName departmentId="21">card</DepartmentName>	
					<Clinics>
						<ClinicName  clinicId="38">c7</ClinicName>
						<Status Flag="0">0</Status>
						<ClinicName  clinicId="39">c2</ClinicName>
						<Status Flag="0">0</Status>
						
                </Clinics>
           </Department>
     </Hospital>
	<Hospital hospitalId="15">
		 <HospitalName>bbbb</HospitalName>
			<Department>
				<DepartmentName departmentId="22">dental</DepartmentName>
					<Clinics>
						<ClinicName  clinicId="35">c6</ClinicName>
						<Status Flag="0">0</Status>
						<ClinicName  clinicId="36">c5</ClinicName>
						<Status Flag="0">0</Status>
											  </Clinics>
               </Department>
    </Hospital>
</Hospitals>

help me with the java code to read from the xml to print the alues as shown below.I tried with [this](http://www.mkyong.com/java/how-to-read-xml-file-in-java-dom-parser/) but I am able to print as the format shown below

    Root element :Hospitals
    ----------------------
     hospital Id : 14
     Hospital Name : aaa
     department Id : 21
     Department Name : card
     clinicId : 38
     ClinicName : c7
     status : 0
     Flag : 0
     clinicId : 38
     ClinicName : c2
     status : 0
     Flag : 0
    ----------------------
    hospital Id : 15
    Hospital Name : bbbb    
    department Id : 22
    Department Name : dental
    clinicId : 35
    ClinicName : c6
    status : 0
    Flag : 0
    clinicId : 38
    ClinicName : c5
    status : 0
    Flag : 0

Any sort of help will help me to complete the work quickly...Thanks in advance