XML parsing in java
I am trying to parse an xml file using SAX parser but I'm unable to read each values within the attribute of a tag. My XML file is as follows

   

     <?xml version="1.0" encoding="UTF-8"?>
    <employees category="1" type="regular" location="india">
    	<employee name="xyz" doj="20/12/2001" dob="21/12/1988" salary="12000"></employee>
    	<employee name="xyz" doj="22/12/2003" dob="22/12/1988" salary="18000"></employee>
    	<employee name="xyz" doj="23/12/2002" dob="23/12/1988" salary="15000"></employee>
    	<employee name="xyz" doj="24/12/2003" dob="22/12/1988" salary="17000"></employee>
    	<employee name="xyz" doj="26/12/2005" dob="24/12/1988" salary="12000"></employee>
    	
    </employees>





XML parsing in java
===

I am trying to parse an xml file using SAX parser but I'm unable to read each values within the attribute of a tag. My XML file is as follows

   

     <?xml version="1.0" encoding="UTF-8"?>
    <employees category="1" type="regular" location="india">
    	<employee name="xyz" doj="20/12/2001" dob="21/12/1988" salary="12000"></employee>
    	<employee name="xyz" doj="22/12/2003" dob="22/12/1988" salary="18000"></employee>
    	<employee name="xyz" doj="23/12/2002" dob="23/12/1988" salary="15000"></employee>
    	<employee name="xyz" doj="24/12/2003" dob="22/12/1988" salary="17000"></employee>
    	<employee name="xyz" doj="26/12/2005" dob="24/12/1988" salary="12000"></employee>
    	
    </employees>




