TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
kennedy chozo
NA
7
32.9k
C# SelectNodes and SelectSingleNodes in HTML agility pack
Dec 18 2013 9:42 AM
Hello,
I'm having problem when selectsinglenodes from selectnodes.
HtmlWeb web = new HtmlWeb();
HtmlAgilityPack.HtmlDocument doc = web.Load(url);
var nodes = doc.DocumentNode.SelectNodes("//table[@border='0' and @cellspacing='0' and @cellpadding='0']");
var listip = nodes.SelectSingleNode("./tbody");
if (nodes != null)
{
foreach (HtmlNode item in nodes)
{
if (item != null)
{
string s = item.InnerText;
listView1.Items.Add(s);
}
}
}
else
{
MessageBox.Show("Nothing found here");
}
Reply
Answers (
1
)
Diffrence b/w data abstraction, encapstulation?
How to loop bitmaps going down a form without using an array