Binding XML data from a string

  • Thread starter Thread starter darrel
  • Start date Start date
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
 
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
 
Back
Top