stringValue

The read-only stringValue property of the The return value is the string value of the XPathResult returned by In case XPathResult.resultType is not STRING_TYPE, a The following example shows the use of the stringValue property.

MDN Reference