I need to know a way to read a XML file from java.
for example if the XML file is >>

<PHONEBOOK>
<PERSON>
 <NAME>Joe Wang</NAME>
 <EMAIL>joe@ffff.com</EMAIL>
 <TELEPHONE>202-999-9999</TELEPHONE>
</PERSON>
</PHONEBOOK>

I need to get the persons name, as in when i specify "NAME" the name 'joe wang' should display.

I have tried SAXParser and it works, but i need to know if there are any other way i can use to read XML files, other than SAXParser?

Here is a link to whole book on Java and XML processing. You may want to have go with JDOM which is very simple... Ofcourse there are other libraries, but generally JDOM is considered one of the simplest.