12 years ago
XPath Match and Wildcard support
Can wildcards be used to look for the presence of a substring? The following works:
<soap:Reason xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Text xml:lang="en">*</soap:Text>
</soap:Reason>
but this does not (even though the soap:Text element contains the substring 42001)
<soap:Reason xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Text xml:lang="en">*42001*</soap:Text>
</soap:Reason>
<soap:Reason xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Text xml:lang="en">*</soap:Text>
</soap:Reason>
but this does not (even though the soap:Text element contains the substring 42001)
<soap:Reason xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Text xml:lang="en">*42001*</soap:Text>
</soap:Reason>