xpath get all child nodes from a parent node when the parent node contains text code example Example: Xpath select Parent Node Based On Child Node //childNode/parent::ParentNode