Hello,
I was wondering if it was possible to get a tag's contents only if has a given length (say, 300 characters) using XPath. Any help is welcome.
Thanks in advance
Hello,
I was wondering if it was possible to get a tag's contents only if has a given length (say, 300 characters) using XPath. Any help is welcome.
Thanks in advance
Use:
XpathExpressionForTheElement[string-length() = 300]/text()
This selects the text nodes of all elements selected by XpathExpressionForTheElement
the length of whose string value is 300.
This also assumes that the elements to be selected have only one text-node child.