 <p>I don't think xpath works with SAX, but you might take a look at StAX which is an extended streaming XML API for Java.</p> <p><a href="http://en.wikipedia.org/wiki/StAX" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/StAX</a></p>