- Регистрация
- 21.08.2013
- Сообщения
- 249
- Благодарностей
- 12
- Баллы
- 18
Having this as an example I'm trying to build an XPath expression for creating a HtmlCollection.
I want to get all CCC elements that are direct descendants of AAA
So the result should be only elements on rows 4 and 10 and NOT elements on rows 3 and 7
I know this is something simple but I'm pretty new to XPath and still learning
Код:
<AAA>
<BBB>
<CCC>
<CCC>
<DDD>
<EEE>
<CCC>
<FFF>
<GGG>
<CCC>
So the result should be only elements on rows 4 and 10 and NOT elements on rows 3 and 7
I know this is something simple but I'm pretty new to XPath and still learning