I have a 1000 entry document whose format is something like:
Use the JAXEN library for xpaths: http://jaxen.codehaus.org/