>> English << | česky | Nederlands | Français | Español | По-русски | Deutsch | 中文 | Italiano | Polski | ZVON > Tutorials > XPath Tutorial |
Intro / Search / ZVON |
>> Example 7 << | Prev | Next |
//*[count(BBB)=2] |
---|
Select elements which have two children BBB |
<AAA> <CCC> <BBB/> <BBB/> <BBB/> </CCC> <DDD> <BBB/> <BBB/> </DDD> <EEE> <CCC/> <DDD/> </EEE> </AAA> |
Open the example in XLab. | Tree view (JPG) |
//*[count(*)=2] |
---|
Select elements which have 2 children |
<AAA> <CCC> <BBB/> <BBB/> <BBB/> </CCC> <DDD> <BBB/> <BBB/> </DDD> <EEE> <CCC/> <DDD/> </EEE> </AAA> |
Open the example in XLab. | Tree view (JPG) |
//*[count(*)=3] |
---|
Select elements which have 3 children |
<AAA> <CCC> <BBB/> <BBB/> <BBB/> </CCC> <DDD> <BBB/> <BBB/> </DDD> <EEE> <CCC/> <DDD/> </EEE> </AAA> |
Open the example in XLab. | Tree view (JPG) |