首页 > Linux操作系统 > Linux操作系统 > XPATH的简单例子
| /AAA |
|---|
| Select the root element AAA |
<AAA> <BBB/> <CCC/> <BBB/> <BBB/> <DDD> <BBB/> DDD> <CCC/> AAA> |
| Open the example in XLab. | Tree view (JPG) |
| /AAA/CCC |
|---|
| Select all elements CCC which are children of the root element AAA |
<AAA> <BBB/> <CCC/> <BBB/> <BBB/> <DDD> <BBB/> DDD> <CCC/> AAA> |
| Open the example in XLab. | Tree view (JPG) |
| /AAA/DDD/BBB |
|---|
| Select all elements BBB which are children of DDD which are children of the root element AAA |
<AAA> <BBB/> <CCC/> <BBB/> <BBB/> <DDD> <BBB/> DDD> <CCC/> AAA> |
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/11049438/viewspace-967501/ ,如需转载,请注明出处,否则将追究法律责任。