c# - Can I select a div by value in HtmlAgilityPack? -


मेरे पास div बिना आईडी या वर्ग < / कोड> मुझे चुनने की आवश्यकता है मैं मान से ऐसा करना चाहूंगा (चूंकि मैं इसे प्राप्त करने का एकमात्र तरीका सोच सकता हूं):

  & lt; div style = "" & gt; Foo: baa & lt; / div & gt;  

मैं यह कैसे कर सकता हूं?

XPath क्वेरी की कल्पना करें: // div [(innerText, 'foo:')]

आप इसके लिए देख रहे हैं:

  // div [contains (।, 'Foo:')]  

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -