24 string ready= (String.Format("{0}", str));
25 Stream s = new MemoryStream(ASCIIEncoding.Default.GetBytes(ready));
26 DataSet ds = new DataSet();
27 ds.ReadXml(s);
24 string ready= (String.Format("{0}", str));
25 Stream s = new MemoryStream(ASCIIEncoding.Default.GetBytes(ready));
26 DataSet ds = new DataSet();
27 ds.ReadXml(s);
Send-MailMessage -SMTPServer smtp.domain.com -To [email protected] -From [email protected] -Subject "This is a test email" -Body ...
1 comment:
another way to do it with StringReader
public DataSet readxml(string s) {
System.IO.StringReader xmlSR = new System.IO.StringReader(s);
DataSet ds10 = new DataSet();
ds10.ReadXml(xmlSR);
return ds10;
}
Post a Comment