المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Getting XHTML tags by tag name



C# Programming
06-25-2009, 02:11 AM
In ********** you can run document.getElementsByTagName ("img") to get all of the image tags. Can you do something similar in C#?

Also you can do this is **********:

var image = document.createElement ("img");
image.getAttribute ("src");

Again can you do something similar in C#? And if so, how?

This is how I'm getting the webpage: http://www.tech-recipes.com/rx/1954/get_web_page_contents_in_code_with_csharp/[^ (http://www.tech-recipes.com/rx/1954/get_web_page_contents_in_code_with_csharp/)]

Thanks.