| English | česky | Nederlands | >> Français << | Español | По русски | Deutsch | ZVON > Tutorials > XPath Tutorial |
| Intro / Chercher / ZVON |
| >> Exemple 5 << | Précédent | Suivant |
| //@id |
|---|
| Sélectionne tous les attributs id |
|
<AAA> <BBB id = "b1"/> <BBB id = "b2"/> <BBB name = "bbb"/> <BBB/> </AAA> |
| Ouvrez l'exemple dans XLab | vue d'arbre (JPG) |
| //BBB[@id] |
|---|
| Sélectionne tous BBB qui ont un attribut id |
|
<AAA> <BBB id = "b1"/> <BBB id = "b2"/> <BBB name = "bbb"/> <BBB/> </AAA> |
| Ouvrez l'exemple dans XLab | vue d'arbre (JPG) |
| //BBB[@name] |
|---|
| Sélectionne tous BBB qui ont un attribut name |
|
<AAA> <BBB id = "b1"/> <BBB id = "b2"/> <BBB name = "bbb"/> <BBB/> </AAA> |
| Ouvrez l'exemple dans XLab | vue d'arbre (JPG) |
| //BBB[@*] |
|---|
| Sélectionne tous BBB qui ont un attribut |
|
<AAA> <BBB id = "b1"/> <BBB id = "b2"/> <BBB name = "bbb"/> <BBB/> </AAA> |
| Ouvrez l'exemple dans XLab | vue d'arbre (JPG) |
| //BBB[not(@*)] |
|---|
| Sélectionne tous BBB qui n'ont pas d'attribut |
|
<AAA> <BBB id = "b1"/> <BBB id = "b2"/> <BBB name = "bbb"/> <BBB/> </AAA> |
| Ouvrez l'exemple dans XLab | vue d'arbre (JPG) |