I'm working now with XML documents and in the dom4jpage(http://www.dom4j.org/benchmarks/xpath/index.html)there is a performance statistics and programs thatmay be could help you.