Using System.Net;
Using System.IO;
Using System.Xml;
Using System.Xml.Linq;
XmlDocument Xml = new XmlDocument()
Xml.Load(https://www.yourwebsite.com/yourxmlfile.xml) //add your xml link here, can also point to an xml file on the users computer
<testxml>
<Login Username="Skyrocket" Key="1234"></Login>
<Login Username="DangeeJ" Key="4321"></Login>
</testxml>
XmlNodeList Login = Xml.GetElementByTagName("Login"); //gets everything inside <login>
Foreach (XmlNode node in Login)
{
String user = node.Attributes["UserName"].Value; //gets the value of username=
String Key =node.Attributes["Key"].Value;
If (user == textBox1.Text && Key == textBox2.Text)
{
MessageBox.Show("Logged In");
}
Using System.Net;
Using System.IO;
Using System.Xml;
Using System.Xml.Linq;
XmlDocument Xml = new XmlDocument()
Xml.Load(https://www.yourwebsite.com/yourxmlfile.xml) //add your xml link here, can also point to an xml file on the users computer
<testxml>
<Login Username="Skyrocket" Key="1234"></Login>
<Login Username="DangeeJ" Key="4321"></Login>
</testxml>
XmlNodeList Login = Xml.GetElementByTagName("Login"); //gets everything inside <login>
Foreach (XmlNode node in Login)
{
String user = node.Attributes["UserName"].Value; //gets the value of username=
String Key =node.Attributes["Key"].Value;
If (user == textBox1.Text && Key == textBox2.Text)
{
MessageBox.Show("Logged In");
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.