How does one retrieve the text in a node without selecting the text in the children?
Editor\'s Descrip 3条回答 后悔当初 (楼主) 2021-01-30 13:50 Just select text() instead of .: div/text() On the given XML fragment, this returns: Lorem ipsum dolor sit amet. 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Just select text() instead of .:
text()
.
div/text()
On the given XML fragment, this returns:
Lorem ipsum dolor sit amet.