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

  • Kontor.TV

    Kontor.TV

    14 Mart 2006
  • MattSteffanina 2

    MattSteffani

    28 Kasım 2007
  • SoundHound

    SoundHound

    8 Mart 2006