A node is consider to be text-node when SOME of its contents is string.
data.zip.xml/text get all text under a node, not just those ones directly
under it. So added text to get only text directly under it. Also added
corresponding pred function.