In XPath how to select the element content

前端 未结 2 523
慢半拍i
慢半拍i 2021-01-07 16:09

Is there a way of writing an XPath expression to select the content of the element.

e.g.

xxx

Assumin

相关标签:
2条回答
  • 2021-01-07 16:52

    Use the value-of element:

    <xsl:value-of select="/Some/Path/To/Element"/>
    

    If you can only specify an XPath then use the text function like this:

    /Some/Path/To/Element/text()

    0 讨论(0)
  • 2021-01-07 17:13

    A bit too late but...

    data(Element)
    

    ...should also be fine.

    0 讨论(0)
提交回复
热议问题