Answer the question
In order to leave comments, you need to log in
How to extract URL using XPath?
Hello.
I need to pull http://site.ru/
from the following code:
<div class="one">
<dl>
<dt class="two">
<span class="name">Site</span>
</dt>
<dd class="three">
<span class="js-pseudo-link" data-url="rAnDoMlEtTeRsAnDnUmBeRs" style>
<a href="http://site.ru/" class rel="nofollow" target="_blank" style> http://site.ru/ </a>
</span>
</dd>
</dl>
</div>
//div//dl//dd//span//a/@href
Answer the question
In order to leave comments, you need to log in
I do this: //div//dl//dd//span//a/@href
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question