C# 讀取XML
02-01
using System;nusing System.Windows.Forms;nusing System.Xml;nnnamespace WindowsFormsApp1n{n public partial class Form1 : Formn {n public Form1()n {n InitializeComponent();n }nn private void button1_Click(object sender, EventArgs e)n {n string result = webserivce.feedbackService(xml);n XmlDocument xmldoc = new XmlDocument();n xmldoc.LoadXml(result);n XmlNode xmlnode = xmldoc.SelectSingleNode("DATA/MESSAGE");n result = xmlnode.InnerText;n }n }n}n
推薦閱讀: