Simple Xpath Implementation in Java