Answer the question
In order to leave comments, you need to log in
How to read string in xml and compare C#?
I have such a question, how to read the xml file on the site, and check the values in the program itself.
Let's say the structure in the xml file
<?xml version="1.0" encoding="utf-8" ?>
<version>
<myprogram>1.0.0.0</myprogram>
<myupdater>1.1.0.0</myupdater>
<suggestions>true</suggestions>
</version>
private void Main_Load(object sender, EventArgs e)
{
XmlDocument serverdoc = new XmlDocument();
localdoc.Load("http://мойсайт.ru/version.xml");
// дальше что писать?
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question