i mean this piece of code does not return paths from the file oredr.xml which satisfy my condition it returns <hh> filter() </hh> __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com