While @Tomalak is perfectly right, in XPath 2.0 one can use:
//td/string(.)
and this produces a sequence of strings -- each one containing the string value of a corresponding td
element.
So, in your case the result will be the desired one:
"", "foo"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…