SORU
27 Mayıs 2009, ÇARŞAMBA


XPath: bağlantı metni ile link URL bul

İyi biçimlendirilmiş XHTML bir sayfa var. Bağlantılı metin varsa, bu bir bağlantı hedef URL bulmak istiyorum.

Örnek

<a href="http://stackoverflow.com">programming questions site</a>
<a href="http://cnn.com">news</a>

XPath ifade http://stackoverflow.com ve ben news ver programming questions site verilen http://cnn.com verecek böyle istiyorum.

CEVAP
27 Mayıs 2009, ÇARŞAMBA


Olması gereken bir şey benzer:

//a[text()='text_i_want_to_find']/@href

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Official Android Tips

    Official And

    23 EYLÜL 2009
  • Digital Bounds

    Digital Boun

    19 Temmuz 2013
  • GoProTutorials

    GoProTutoria

    18 NİSAN 2011