Nel precedente esempio xml vorrei selezionare tutti i libri che appartengono alla classe pippo e non nella barra della classe usando xpath.Come posso selezionare un elemento con più classi con Xpath?
<?xml version="1.0" encoding="ISO-8859-1"?>
<bookstore>
<book class="foo">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book class="foo bar">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book class="foo bar">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
</bookstore>
Buona domanda, +1. Vedere la mia risposta per due diverse soluzioni XPath 2.0 di cui la prima potrebbe essere la più efficiente di tutte, specialmente con un motore XPath 2.0 non ottimizzante. –