In order to detect a change you will have to parse the input document. The standard
Java library for DOM will certainly handle this.
I suggest that you work on understanding DOM parsing outside the client-server environment until you are confident that your code can:
1. Catch badly formed xml.
2. Locate the values of all parts of the document.
Bill