鉴于这种简化的数据格式:
<a>
<b>
<c>C1</c>
<d>D1</d>
<e>E1</e>
<f>don't select this one</f>
</b>
<b>
<c>C2</c>
<d>D2</d>
<e>E1</e>
<g>don't select me</g>
</b>
<c>not this one</c>
<d>nor this one</d>
<e>definitely not this one</e>
</a>
你将如何选择所有的 C,D和 E是 B元素的子元素?
基本上是这样的:
a/b/(c|d|e)
在我自己的情况下,导致选择这些 C、 D、 E节点的查询实际上非常复杂,所以我想避免这样做:
a/b/c|a/b/d|a/b/e
这可能吗?