Solved

Htmlagilitypack -> getting a data-eventid

Posted on 2014-02-12
2
296 Views
Last Modified: 2014-02-28
Hi,

is it possible using htmlagaility pack to get the following

<div class="match event-information ui-event ui-27147167 ui-market ui-924_8157131 ui-no-status-message" data-eventId="27147167" data-marketId="924.8157131">

Open in new window


I have a loop that goes through a list of matches and i need to get the value data-eventId.

I would also need to search where class begins with match event-information as i wont have the event id to call the rest.
0
Comment
Question by:runnerjp2005
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 39853827
After using the SelectNode, you can use .Attributes property.
0
 

Author Closing Comment

by:runnerjp2005
ID: 39894316
A short simple answer :)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

709 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now