Trying to select an element based on the value of one of it's childrens childrens
Thinking the following but not working, appreciate any help, thanks
./book[/author/name = 'John']
or
./book[/author/name text() = 'John']
Want all books where the author name = 'John'
Xml file
<list>
<book>
<author>
<name>John</name>
<number>4324234</number>
</author>
<title>New Book</title>
<isbn>dsdaassda</isbn>
</book>
<book>...</book>
<book>...</book>
</list>
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…