>> English << | česky | Nederlands | Français | Español | По-русски | Deutsch | 中文 | Italiano | Polski | ZVON > Tutorials > XPath Tutorial |
Intro / Search / ZVON |
>> Example 12 << | Prev | Next |
/descendant::* |
---|
Select all descendants of document root and therefore all elements |
<AAA> <BBB> <DDD> <CCC> <DDD/> <EEE/> </CCC> </DDD> </BBB> <CCC> <DDD> <EEE> <DDD> <FFF/> </DDD> </EEE> </DDD> </CCC> </AAA> |
Open the example in XLab. | Tree view (JPG) |
/AAA/BBB/descendant::* |
---|
Select all descendants of /AAA/BBB |
<AAA> <BBB> <DDD> <CCC> <DDD/> <EEE/> </CCC> </DDD> </BBB> <CCC> <DDD> <EEE> <DDD> <FFF/> </DDD> </EEE> </DDD> </CCC> </AAA> |
Open the example in XLab. | Tree view (JPG) |
//CCC/descendant::* |
---|
Select all elements which have CCC among its ancestors |
<AAA> <BBB> <DDD> <CCC> <DDD/> <EEE/> </CCC> </DDD> </BBB> <CCC> <DDD> <EEE> <DDD> <FFF/> </DDD> </EEE> </DDD> </CCC> </AAA> |
Open the example in XLab. | Tree view (JPG) |
//CCC/descendant::DDD |
---|
Select elements DDD which have CCC among its ancestors |
<AAA> <BBB> <DDD> <CCC> <DDD/> <EEE/> </CCC> </DDD> </BBB> <CCC> <DDD> <EEE> <DDD> <FFF/> </DDD> </EEE> </DDD> </CCC> </AAA> |
Open the example in XLab. | Tree view (JPG) |