| >> English << | česky | Nederlands | Français | Español | По русски | Deutsch | ZVON > Tutorials > XPath Tutorial |
| Intro / Search / ZVON |
| >> Example 8 << | Prev | Next |
| //*[name()='BBB'] |
|---|
| Select all elements with name BBB, equivalent with //BBB |
|
<AAA> <BCC> <BBB/> <BBB/> <BBB/> </BCC> <DDB> <BBB/> <BBB/> </DDB> <BEC> <CCC/> <DBD/> </BEC> </AAA> |
| Open the example in XLab. | Tree view (JPG) |
| //*[starts-with(name(),'B')] |
|---|
| Select all elements name of which starts with letter B |
|
<AAA> <BCC> <BBB/> <BBB/> <BBB/> </BCC> <DDB> <BBB/> <BBB/> </DDB> <BEC> <CCC/> <DBD/> </BEC> </AAA> |
| Open the example in XLab. | Tree view (JPG) |
| //*[contains(name(),'C')] |
|---|
| Select all elements name of which contain letter C |
|
<AAA> <BCC> <BBB/> <BBB/> <BBB/> </BCC> <DDB> <BBB/> <BBB/> </DDB> <BEC> <CCC/> <DBD/> </BEC> </AAA> |
| Open the example in XLab. | Tree view (JPG) |