A small test for xmldom and jxpath. Seems to work fine for me. Make sure you have commons-jxpath.jar in ant/lib ( or use <classloader> )