Binding XML data from a string

D

darrel

I'm trying to bind XML data to a control. Normally, one could just read in
the XML file:

myDataSet.ReadXML("myXMLfile.xml")

however, I want to cache this XML file so want to read in the XMl from the
cache if it's there. The problem is that ReadXML expects a file name...not a
string.

How would I go about reading the XML in from the string, rather than a file?

-Darrel
 
D

darrel

How would I go about reading the XML in from the string, rather than a
file?

As usual, I finally figure it 5 minutes after posting.

Solution? Use a stringReader.

-Darrel
 

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

Similar Threads

Data Binding To XML 1
Return XML Document 7
Cacheing DB content 6
XML data question 4
viewing xml 2
Read XML from string instead of file (C#) 5
convert string to datatable 1
Binding XML document to a GridView 1

Top