i have my student xml file
<students>
<student name="abc">
<college>pqr</college>
</student>
<student name="def">
<college>xyz</college>
</student>
</students>
please tell me how can i retrieve the value of an attribute name using java server pages
as the provided xml is a user defined you have to use any parser (example: SAX,DOM parser) to read the data in the xml elements and place these elements in an object. you can easily retrieve the data from the object use the needed data in your jsp.