參考以下函數
private string StringToXML(string XMLstring)
{
StringWriter sw = new StringWriter();
System.Xml.XmlTextWriter xmlw = new System.Xml.XmlTextWriter(sw);
xmlw.WriteString(XMLstring);
xmlw.Close();
return sw.ToString();
}
沒有留言:
張貼留言