• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 617
  • Last Modified:

Is there any easy way to convert a XmlDataSource to a dataview?

I've got a XmlDataSource which is driven off a file e.g.

ItemDataSource.DataFile = ""

Whats the easiest way to make this a dataview / dataset in order to conduct complex filtering?

FYI - I'm need to use LIKES% etc so Xpaths arnt an option

Thanks
P
0
paulCardiff
Asked:
paulCardiff
1 Solution
 
madhevan_pillaiCommented:
Hi,

Try this        

Dim ds = New System.Data.DataSet()
        Dim sReader As New System.IO.StringReader(Me.XmlDataSource1.GetXmlDocument().InnerXml)
        ds.ReadXml(sReader)

Maddy
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now