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?