Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<a> <b /> <c /> </a> <a1> <b /> </a1>
子ノードが指定されていないノードを選択するにはどうすればよいですか?たとえば、私の例ではa1のように、 cノードを持たないすべてのノードが必要です。
与えられた:
<root> <a> <b /> <c /> </a> <a1> <b /> </a1> </root>
使用する:/root/*[not(c)]
/root/*[not(c)]
結果はa1です。
a1