I am looking for an XPATH expression that selects child nodes whenever it contains the entire text node of the parent element. e.g.:
<title><italic>Here is my title</italic></title>
(here I want to select italic as it includes the entire content of its parent. but I don't want to select:
<title>Here is my <italic>italic</italic> title</title>
or
<title><bold>Here is my </bold><italic>italic title</italic></title>
(here, italic only contains part of the parents text)
Any ideas? Thanks! Franziska