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
  • Malwarebytes

    Malwarebytes

    22 Temmuz 2007
  • superflyy88

    superflyy88

    8 ŞUBAT 2009