Read an XML string into a dataset /datatable
Posted on 2010-09-15
Hello: I rarely have to work with XML data, so bear with me.
I am getting an email message where in the body of the message there is the following string:
<?xml version="1.0" encoding="UTF-8"?><telemetry><esn>0-436701</esn><unixTimestamp>1284595879</unixTimestamp><hexPayload>0x02063F000000000000</hexPayload></telemetry>
I need to move the data in the XML string to a datatable / dataset so I can push it along to my database. I've looked at XMLTextReaders and Linq to XML, but can't quite get it.