XML query and databinding

R

raheel

Hi!
I want to be able to query an XML data. For example I
have an employee xml file which lists the detail of the
employees using XML markup. I want to be able to query
this data so that I get the employees with salary > some
amount. How can I do this?
I am later going to bind the query results to a DataList.
Thanks!
 
C

Craig Deelsnyder

raheel said:
Hi!
I want to be able to query an XML data. For example I
have an employee xml file which lists the detail of the
employees using XML markup. I want to be able to query
this data so that I get the employees with salary > some
amount. How can I do this?
I am later going to bind the query results to a DataList.
Thanks!

Well, assuming the XML is 'good', you can import the XML into a DataSet
(using its ReadXxml method), which will create tables for each level of
nodes, etc. See this article on consuming RSS for an example:

http://aspnet.4guysfromrolla.com/articles/031903-1.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top