ReadXml method...

Results 1 to 2 of 2

Thread: ReadXml method...

  1. #1
    Join Date
    Dec 1969

    Default ReadXml method...

    Can ReadXml be used to read a piece of XML from a variable?<BR><BR>For example:<BR><BR>string sXML = "some xml code";<BR>dsEmployees = new DataSet( "prefs" );<BR>dsEmployees.ReadXml( sXML );<BR><BR>Thanks for your help.

  2. #2
    Join Date
    Dec 1969

    Default RE: ReadXml method...

    almost - the ReadXml method does not take a string as a parameter. However, you can use a StringReader:<BR><BR>string sXML = "some xml code";<BR>StringReader xmlSR = New System.StringReader(sXML) <BR>dsEmployees = new DataSet( "prefs" );<BR>dsEmployees.ReadXml(xmlSR);<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts