Thank you Aaron !
Your suggestion is better than the solution I found (doc.xpath('//p
[contains(@class, "class1") and contains(@class, "class2")]') ).
The solution I found is not precise : p with classes such as class12
and class22 will be selected .... which is not good. However, with
your solution only elements with exact class names are selected.
Thanks again,
Massi
On Nov 20, 12:17 pm, Aaron Patterson <
aaron.patter...@gmail.com>
wrote: