03-05-14, 12:29 AM
اخي لو بسطت السؤال كان احسن
هل تريد جلب عنصر بالاعماد على الClass ؟
اذا كان هذا ماتريده فذلك بسيط ايضا وكما قلت يمكن ذلك بأكثر من طريقة ، ابسطها :
هل تريد جلب عنصر بالاعماد على الClass ؟
اذا كان هذا ماتريده فذلك بسيط ايضا وكما قلت يمكن ذلك بأكثر من طريقة ، ابسطها :
PHP كود :
Dim htmldoc As New HtmlAgilityPack.HtmlDocument()
htmldoc.LoadHtml("<a class='any' href='http://vb4arb.com/'>منتدى فيجوال بيسك لكل العرب</a><a class='any' href='http://google.com/'>جوجل</a>")
Dim nodes As HtmlAgilityPack.HtmlNodeCollection = htmldoc.DocumentNode.SelectNodes("//a[@class='any']")
For Each n As HtmlAgilityPack.HtmlNode In nodes
MessageBox.Show(n.Attributes("href").Value)
Next

