<Root> <SomeElement> ... <Wanted>.....</Wanted> <UnWanted> <Wanted>.....</Wanted> </UnWanted> <Wanted>.....</Wanted> ... </SomeElement> </Root>
我想选择任何级别的“SomeElement”内的“通缉”元素,而不是“UnWanted”元素的子元素.
使用XPath / Root / SomeElement //想要我不能排除UnWanted的孩子.
<Root> <SomeElement> ... <Wanted>.....</Wanted> <UnWanted> <Wanted>.....</Wanted> </UnWanted> <Wanted>.....</Wanted> ... </SomeElement> </Root>
我想选择任何级别的“SomeElement”内的“通缉”元素,而不是“UnWanted”元素的子元素.
使用XPath / Root / SomeElement //想要我不能排除UnWanted的孩子.