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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top