Have you tried this?
//myparent/mychild[text() = 'foo']
Alternatively, you can use the shortcut for the self axis:
//myparent/mychild[. = 'foo']
Have you tried this?
//myparent/mychild[text() = 'foo']
Alternatively, you can use the shortcut for the self axis:
//myparent/mychild[. = 'foo']