954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

C# XMLDataSource - filtering XML

Hi! First post :-) Relatively new to ASP.NET

I'm building a lottery syndicate in ASP.NET 3.5 C# and I'm trying to filter an XML file to obtain this weeks lotto numbers and assign them to labels.

Here is the XML: http://www.schok.co.uk/lottery/lottery.xml

how should I go about doing this? At the moment I have the part but I'm really trying to obtain just the numbers. I have this part in a DataList, which isn't very useful (how do assign the read data into variables in the .cs file)

thanks a lot :-)

gazpoole
Newbie Poster
3 posts since Jan 2009
Reputation Points: 10
Solved Threads: 0
 

there are useful xml manipulation methods under the namespace System.Xml and to search for values of xml nodes also include System.Xml.Xpath namespace. Or find an Xpath query tutorial searching google.

serkan sendur
Postaholic
Banned
2,062 posts since Jan 2008
Reputation Points: 854
Solved Threads: 127
 

cheers I'll look into that.

gazpoole
Newbie Poster
3 posts since Jan 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You