<SMSWall run="yes" nonstop="False">
<starttime>10:15:25 PM</starttime>
<endtime>10:15:25 PM</endtime>
</SMSWall>
<MediaPlayer run="yes" nonstop="False">
<starttime>10:15:25 PM</starttime>
<endtime>10:15:25 PM</endtime>
</MediaPlayer>
<Bidding run="yes" nonstop="False">
<starttime>10:15:25 PM</starttime>
<endtime>10:15:25 PM</endtime>
</Bidding>
这是我的xml文件。现在我想读取xml,将该值存储在一个变量中(并且还希望数据从字符串中读取),并保留.xml文件以使其可以被删除。我还想读取像节点一样的明智数据:如何在C中读取,存储和删除xml数据#
XmlDocument document = new XmlDocument();
document.Load("Schedule.xml");
XmlNode ht=document.SelectSingleNode("SMSWall/@run");
okey这很好。我已经看到了这样的帖子。但问题是我如何从数据集中读取值,因为我正在读取.xml文件。并且还读取了单个节点。 – KAUSHIK
hey thnx帮助。我可以在词语后做些什么,我的意思是我怎样才能从.xml文件中读取values.from。 – KAUSHIK
答复已更新。 – melmi