That is an XML question, not a REST question.
The standard
Java library for XML parsing is quite sufficient to handle this but there are so many options. I suggest you start with parsing local XML files and only proceed to web service plus JSP when you are comfortable with XML parsing.
Harold's online book is very complete and free.
Bill