XPath to return string concatenation of qualifying child node values

前端 未结 7 1698
太阳男子
太阳男子 2020-11-29 07:44

Can anyone please suggest an XPath expression format that returns a string value containing the concatenated values of certain qualifying child nodes of an element, but igno

7条回答
  •  孤城傲影
    2020-11-29 07:58

    /div//text()
    

    double slash forces to extract text regardless of intermediate nodes

提交回复
热议问题