给定这个简化的数据格式:
@H_301_16@<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>
你如何选择所有的Cs,Ds和Es是B元素的子项?
基本上,类似:
a/b/(c|d|e)
在我自己的情况下,而不是只是a / b /,查询导致选择那些C,D,E节点实际上是相当复杂,所以我想避免这样做:
a/b/c|a/b/d|a/b/e
这可能吗?