Problem reading XML from a string

mjohnson3091

Active member
Joined
Aug 10, 2004
Messages
31
Location
Lancashire, UK
Im just having a play about with XML as Ive never used it before and Ive encountered a problem that I cant seem to figure out.

Ive got a simple XML message as a string and convert it to a StringReader stream.

I then try to pass that to a DataSet using the ReadXML method, but it gives me a System error.

Reading the same message from a file seems to work fine.

Ive attached the code, so if anybody can shed any light I would greatly appreciate it.

Regards,

Mark J.
 

Attachments

Back
Top