from the given html :
<span class="flag_16 left_16 armenia_16_left"> First League</span>
how i can get the (armenia) string only or at least (armenia_16_left).
thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use this XPath 1.0 expression:
In XPath 2.0 one can simply use:
XSLT-based verification:
when this transformation is applied on the provided XML document:
the Xpath expression is evaluated and the result is copied to the output:
When this XSLT 2.0 transformation is applied on the same XML document (above):
again the same correct result is produced: