Hi Ekzarov,
Have you looked at using filters to do this? Certainly you can use Xpath as part of your condition in your filter. Filters are a much discussed forum topic and Greg has written several HowTos on it as well. Please search the forum for related posts (top right) and the site for the HowTos (top left)
Patrick Halstead
Project Manager at Qdabra